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