#include <iostream> using namespace std; int main(){ int n = 10; while(n --> 0) cout << "n: " << n << endl;}
Standard input is empty
n: 9 n: 8 n: 7 n: 6 n: 5 n: 4 n: 3 n: 2 n: 1 n: 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!