fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4.  
  5. {
  6.  
  7. int a = 10;
  8.  
  9. if (a > 9)
  10.  
  11. puts("First condition is true");
  12.  
  13. else
  14.  
  15. puts("First condition is false");
  16.  
  17. if (a == 9)
  18.  
  19. puts("Second condition is true");
  20.  
  21. else
  22.  
  23. puts("Second condition is false");
  24.  
  25. if (a == 9 + 1)
  26.  
  27. puts("Third condition is true");
  28.  
  29. else
  30.  
  31. puts("Third condition is false");
  32.  
  33. return 0;
  34.  
  35. }
  36.  
  37. Expected output
  38.  
  39. First condition is true
  40.  
  41. Second condition is false
  42.  
  43. Third condition is true
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:37:1: error: unknown type name ‘Expected’
 Expected output
 ^~~~~~~~
prog.c:39:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘First’
 First condition is true
 ^~~~~
prog.c:39:1: error: unknown type name ‘First’
stdout
Standard output is empty