qcode
  • 创作工场专业版,一问多答!更智能、更完整、更原创
  • 这是一个超强内容创作平台,它会写文章、做设计、绘图、敲代码,有问必答!
🔥点击使用-免登录深度版🔥

请问C语言判定考试成绩

时间2023-04-16 08:38:37 提问来自 江苏省苏州市 的网友 分类创作 浏览407
的程序是怎么写的以下是一个简单的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值。 }

不满意?免费深度重写!

免责声明:
以上内容除特别注明外均来源于网友提问,创作工场回答,未经许可,严谨转载。

上一篇 中国式现代化与时代新人的使命担当研究性学习报告 下一篇 建设教育强国的青年力 量