fork(1) download
  1. /* Helloプログラム */
  2.  
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7. int absent, test, flag;
  8.  
  9. absent = 2;
  10. test = 70;
  11. flag = ( (absent <= 3) && (test >= 60) );
  12.  
  13. if (flag) {
  14. printf("合格です");
  15. }
  16. else {
  17. printf("不合格です");
  18. }
  19.  
  20. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
合格です