fork(1) download
  1. #include <iostream>
  2.  
  3. int main()
  4. {
  5. for(int i = 0; i < 15; i += 2)
  6. {
  7. std::cout << i << " ";
  8. }
  9. std::cout << std:: endl;
  10. for(int i = 1; i < 15; i += 2)
  11. {
  12. std::cout << i << " ";
  13. }
  14. }
  15.  
Success #stdin #stdout 0s 3096KB
stdin
Standard input is empty
stdout
0 2 4 6 8 10 12 14 
1 3 5 7 9 11 13