题解 | #成绩输入输出#
成绩输入输出
https://www.nowcoder.com/practice/eb49750ef0de47168c21761de086d97c
#include <stdio.h> int main() { int a=0; int b=0; int c=0; scanf("%d%d%d",&a,&b,&c); if((0<=a&a<=100)&(0<=b&b<=100)&(0<=c&c<=100)) { printf("score1=%d,score2=%d,score3=%d",a,b,c); } else { printf("请输入正确的成绩"); } return 0; }
还是要体现题目所给的数据范围的😊