aiaiask.com©

开花即结果 提问即答案

请问C语言判定考试成绩
原始问题:

请问C语言判定考试成绩

的程序是怎么写的以下是一个简单的C语言判定考试成绩的程序#include <stdio.h>
int main()
{

int score; 

printf("Please enter the score:   

");

scanf("%d", &score); // 输入考试成绩

if (score >= 90) { // 判断成绩并输出相应信息 
    printf("Excellent!  

");

} else if (score >= 80) {  
    printf("Good job!  

");

} else if (score >= 70) {  
    printf("Not bad.  

"); } else if (score >= 60) { printf("Try harder next time.
"); } else { printf("You failed the exam.
"); }

return 0;  // 程序正常退出时返回0值。     }
请问C语言判定考试成绩
https://www.aiaiask.com/ask/11011.html
AI / 模型Siliconflow
时间 / DATEApril 16, 2023, 8:38 AM
语言zh-CN
IP / 区域江苏 苏州