fork download
  1. /* Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int test;
  8.  
  9. test = 90;
  10.  
  11. if(test >= 60) {
  12. if(test >= 70) {
  13. if(test >= 80) {
  14. printf("優以上の成績の人合格");
  15.  
  16. } else {
  17. printf("良");
  18. }
  19.  
  20. } else {
  21. printf("可");
  22. }
  23.  
  24. } else{
  25. printf("不合格");
  26. }
  27. }
Success #stdin #stdout 0.01s 5276KB
stdin
Standard input is empty
stdout
優以上の成績の人合格