fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. int main (void)
  4. {
  5. int score;
  6. scanf("%d",&score);
  7. printf("輸入成績:%d\n",score);
  8.  
  9. if((score>=80)&&(score<=100))
  10. printf("A級");
  11.  
  12. else if ((score>=60)&&(score<=79))
  13. printf("B級");
  14.  
  15. else if ((score>=0)&&(score<60))
  16. printf("C級");
  17.  
  18. return 0;
  19.  
  20. }
Success #stdin #stdout 0s 5284KB
stdin
89
stdout
輸入成績:89
A級