fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. int score;
  6. printf("請輸入成績:\n");
  7. scanf("%d",&score);
  8.  
  9. if ((score<0)||(score>100))
  10. printf("成績輸入錯誤");
  11.  
  12. if ((score>=60)&&(score<=100))
  13. printf("牛逼老鐵");
  14.  
  15. if ((score<=60)&&(score>=0))
  16. printf("重修就好");
  17.  
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0s 5268KB
stdin
120
stdout
請輸入成績:
成績輸入錯誤