#include <math.h> #include <stdio.h> int main() { int no; double c,math,english; scanf("%d;%lf,%lf,%lf", &no, &c, &math, &english); printf("The each subject score of No. %d is %.2f, %.2f, %.2f.", no, round(c*100)/100, math, english); return 0; }