题解 | #学生基本信息输入输出#
学生基本信息输入输出
https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
#include <stdio.h> struct student{ int number; float c; float math; float english; }; int main() { struct student a; scanf("%d;",&a.number); scanf("%f,",&a.c); scanf("%f,",&a.math); scanf("%f",&a.english); printf("The each subject score of No. %d is %.2f, %.2f, %.2f." ,a.number,a.c,a.math,a.english); return 0; }