fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a=23;
  6. int b=23;
  7. int c;
  8. c=(a==b); //aとbが等しかった場合1、等しくなかった場合2を出力
  9. c=a!=b;
  10. c=a>b;
  11. c=a<b;
  12. c=a>=b;
  13.  
  14.  
  15. if(a%2==0)//条件式
  16. {
  17. printf("aは偶数です");//処理式
  18. }
  19. else
  20. {
  21.  
  22. }
  23.  
  24.  
  25.  
  26. return 0;
  27.  
  28.  
  29. }
  30.  
Success #stdin #stdout 0s 5332KB
stdin
Standard input is empty
stdout
Standard output is empty