1. 程式人生 > >C 判斷成績是否及格

C 判斷成績是否及格

har %d main argc char sca stdio.h include scanf

#include <stdio.h>

int main(int argc, char **argv)
{
const int pass=60;
int score;
printf("請輸入成績:");
scanf("%d",&score);
printf("你的成績是%d\n",score);
if(score>=pass){
printf("恭喜你及格了");
}else{
printf("沒有及格請再接再厲");
}


return 0;
}

C 判斷成績是否及格