fork(6) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int foo = 6;
  6. int bar = 7;
  7.  
  8. if(foo == 4)
  9. {
  10. printf("happy ");
  11. }
  12. else if(foo > 4)
  13. {
  14. printf("merry ");
  15. }
  16. else
  17. {
  18. printf("feliz ");
  19. }
  20.  
  21. if(bar % 2 == 1)
  22. {
  23. if(foo + bar > 6)
  24. {
  25. printf("easter!");
  26. }
  27. else
  28. {
  29. printf("birthday!");
  30. }
  31.  
  32. }
  33. else
  34. {
  35. printf("Leif Erikson Day!");
  36. }
  37.  
  38. return 0;
  39. }
Success #stdin #stdout 0s 4556KB
stdin
Standard input is empty
stdout
merry easter!