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