fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int x = 0;
  6. int y = 4;
  7. for(; x < y; ++x, --y) {
  8. // Do something which uses a converging x and y
  9. cout<<x<<" "<<y<<"\n";
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 4336KB
stdin
Standard input is empty
stdout
0 4
1 3