#include<stdio.h>void main(){ unsigned long no; unsigned int year ,month, day; unsigned char sex; float chinese,math,english; float total, average;
printf("input the student's NO:"); scanf("%8ld",&no); printf("input the student's Birthday(yyyy-mm-dd):"); scanf("%4d-%2d-%2d",&year,&month,&day); fflush(stdin); printf("input the student's sex(M/F):"); scanf("%c",&sex); printf("input the student's scores(chinese,math,english):"); scanf("%f,%f,%f",&chinese,&math,&english); total=chinese+math+english; average=total/3; printf("\n===NO=======birthday==sex==chinese==math==english==total==average\n"); printf("%08ld %4d-%02d-%02d %c %-5,lf %-5.lf %-5.lf %-5.lf %-5.lf\n",no,year,month,day,sex,chinese,math,english,total,average);
}