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