题解 | #学生基本信息输入输出#
学生基本信息输入输出
http://www.nowcoder.com/practice/58b6a69b4bf943b49d2cd3c15770b9fd
#include <stdio.h>
int main()
{
int sno = 0;
float c = 0.0f;
double math = 0.0;
double eng = 0.0;
//输入
scanf("%d; %f, %lf, %lf", &sno, &c, &math, &eng);
//输出
printf("The each subject score of No. %d is %.2f, %.2lf, %.2lf.\n", sno, c, math, eng);
return 0;
}编程初学者入门训练 文章被收录于专栏
针对编程初学者入门训练130题的代码详解专栏,内附注释方便理解,牛客130题的代码均用C语言实现,方便初学者学习。


