fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int x = 1;
  7. if (x == 2)
  8. printf("First sentence\n");
  9. else if (x != 1)
  10. printf("Second sentence\n");
  11. else if (x < 1)
  12. printf("Third sentence\n");
  13. else if (x = 0)
  14. printf("Fourth sentence\n");
  15. else if (x)
  16. printf("Last sentence\n");
  17. else if (1 ==1)
  18. printf("No Output\n");
  19. }
  20.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
No Output