fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int i=3;
  7. while(i)
  8. {
  9. i--;
  10. cout<<"haha"<<endl;
  11. }
  12. i=-3;
  13. while(i)
  14. {
  15. cout<<"yo"<<endl;
  16. i++;
  17. }
  18. for(int i=0;true;i++)
  19. {
  20. if(i<3)
  21. {
  22. cout<<"yes"<<endl;
  23. }
  24. else
  25. {
  26. break;
  27. }
  28. }
  29. return 0;
  30. }
Success #stdin #stdout 0s 3296KB
stdin
Standard input is empty
stdout
haha
haha
haha
yo
yo
yo
yes
yes
yes