fork download
  1. #include <stdio.h>
  2.  
  3. int main() {
  4. int x;
  5. scanf("%d",&x);
  6. if ( x>=90)
  7. printf(" 成績はSです\n");
  8. else if ( x>=80 )
  9. printf("成績はAです \n");
  10. else if ( x>=60 )
  11. printf(" 成績はBです\n");
  12. else if(x>100)
  13. printf("不正です\n");
  14. else
  15. printf(" 成績はDです\n");
  16. return 0;
  17. }
  18.  
Success #stdin #stdout 0s 5316KB
stdin
101
stdout
 成績はSです