使用scanf、printf进行如下的输入和输出

从键盘上输入自己的生日,姓名拼音的首字母,年龄,身高,体重,然后再输出.(注意使用fflush(stdin)函数清除缓存区域


#include<stdio.h> 

int main()
{
    char birth[40];
    char name[20];
    int age;
    float height,weight;
    
    scanf("%s %s %d %f %f",birth,name,&age,&height,&weight);
    
    printf("出生日期:%s 姓名:%s 年龄:%d 身高:%f 体重:%f\n",birth,name,age,height,weight);
    
    return 0;
}

#include<stdio.h>
int main()
{
char birth[40];
char name[20];
int age;
float height,weight;
scanf("%s %s %d %f %f",birth,name,&age,&height,&weight);
printf("出生日期:%s 姓名:%s 年龄:%d 身高:%f 体重:%f\n",birth,name,age,height,weight);
return 0;
}