#include <stdio.h> #include<string.h> int main() { int a; float b,c,d; scanf("%d;%f,%f,%f",&a,&b,&c,&d);//注意这里输入时要打;,,不能遗忘 printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",a,b,c,d); return 0; }