fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b = 0;
  6. cin >> a;
  7. while (a >= 0) {
  8. cout << a << " " << b << "\n";
  9. a-=4; b+=4;
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 4532KB
stdin
6
stdout
6 0
2 4