fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. for (int i = 30; i >= 21; i--) {
  6. cout << i;
  7. if (i > 21) {
  8. cout << ", ";
  9. }
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
30, 29, 28, 27, 26, 25, 24, 23, 22, 21