#include <stdio.h> int main() { int num=0; float c=0.0; float math=0.0; float english=0.0; scanf("%d;%f,%f,%f",&num,&c,&math,&english);//控制输入格式 printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",num,c,math,english);//依次对应输出 最后有个小数点不要忘记 return 0; }