#include "stdio.h" void main() { int score; printf("请输入你的成绩:"); scanf("%d",&score); for (score;score<=100;score++) { if(score<0||score>100) { printf("您输入有误,请重新输入"); }else break; printf("%d",score); } }
时间: 2024-10-17 14:36:26
#include "stdio.h" void main() { int score; printf("请输入你的成绩:"); scanf("%d",&score); for (score;score<=100;score++) { if(score<0||score>100) { printf("您输入有误,请重新输入"); }else break; printf("%d",score); } }