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