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