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