fork download
  1. #include <stdio.h>
  2.  
  3. main()
  4. {
  5. int test;
  6.  
  7. test = 55;
  8.  
  9. if (test >= 60) {
  10. if (test >= 70) {
  11. if (test >= 80) {
  12. printf("優\n");
  13. } else {
  14. printf("良\n");
  15. }
  16. } else {
  17. printf("可\n");
  18. }
  19. } else {
  20. printf("不合格\n");
  21. }
  22. }
  23.  
  24.  
  25.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
不合格