此题考虑的是对类型的使用
#include<stdio.h>
int main()
{
int a=0;
float d=0.0;
float b=0.0;
float c=0.0;
scanf("%d;%f,%f,%f",&a,&d,&b,&c);
printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",a,d,b,c);
return 0;
}
执行图 如下: