第2个输入100怎么输出100.00

#include
int main()
{
int a;
float b;
scanf("%d,%f",&a,&b);
printf("The each subject score of No. %d is %.2f",a,b);
return 0;
}

你自己写的代码自己运行了测试过了吗,怎么就不能输出了?

你不会是没有输入逗号吧,两个数字中间得加逗号

第二个数是 b 是浮点数
你打印浮点数用了 %.2f 保留了两位小数 100 就变成 100.00 输出了
printf("The each subject score of No. %d is %.2f",a,b);