C 判断成绩是否及格

Posted ligouhai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C 判断成绩是否及格相关的知识,希望对你有一定的参考价值。

#include <stdio.h>

int main(int argc, char **argv)
{
const int pass=60;
int score;
printf("请输入成绩:");
scanf("%d",&score);
printf("你的成绩是%d ",score);
if(score>=pass){
printf("恭喜你及格了");
}else{
printf("没有及格请再接再厉");
}


return 0;
}
















以上是关于C 判断成绩是否及格的主要内容,如果未能解决你的问题,请参考以下文章