判斷成績是否及格

#include<stdio.h> int main() { int score;//定義成績變量 scanf("%d",&score);//輸入成績 if(score>=60)//設定判斷條件 printf(「及格\n」);//如果條件爲真,執行本行 else printf(「不及格、n」);//如果條件爲假,則執行本行 return 0; }
相關文章
相關標籤/搜索