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