#include <iostream>using namespace std; int main() { for (int i = 30; i >= 21; i--) { cout << i; if (i > 21) { cout << ", "; } } return 0;}
Standard input is empty
30, 29, 28, 27, 26, 25, 24, 23, 22, 21
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!