题解 | #学生基本信息输入输出#
学生基本信息输入输出
https://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
#include <stdio.h>
int main() {
double a[4]={0};
int i;
scanf("%lf;%lf,%lf,%lf",&a[0],&a[1],&a[2],&a[3]);
for(i=0;i<4;i++)
{
a[i]=a[i]+0.0005;
}
printf("The each subject score of No. %.0lf is %.2lf, %.2lf, %.2lf.",a[0],a[1],a[2],a[3]);
return 0;
}