题解 | #成绩输入输出#
成绩输入输出
https://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c
#include <stdio.h>
int main() {
// int a, b;
// while (scanf("%d %d", &a, &b) != EOF) { // 注意 while 处理多个 case
// // 64 位输出请用 printf("%lld") to
// printf("%d\n", a + b);
// }
int score1,score2,score3;
scanf("%d%d%d",&score1,&score2,&score3);
printf("score1=%d,score2=%d,score3=%d",score1,score2,score3);
return 0;
}
查看10道真题和解析