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