include <stdio.h>

int main()
{
int number;
float score1,score2,score3;
scanf("%d;%f,%f,%f",&number,&score1,&score2,&score3);
printf("The each subject score of No. %d is %.2f, %.2f, %.2f.",number,score1,score2,score3);
return 0;
}

  1. _ _No. 前面两个空格;
  2. %f float类型,%.2 四舍五入,小数点两位。