题解 | #学生基本信息输入输出#
学生基本信息输入输出
https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
#include <stdio.h> int main() { long No; float a,b,c; scanf("%ld;%f,%f,%f",&No,&a,&b,&c); printf("The each subject score of No. %ld is %.2f, %.2f, %.2f.\n",No,a,b,c); return 0; }
要注意输入格式问题,要和题目给出的格式保持一致