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