fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int len = 2;
  7.  
  8. for (int idx=len-2; idx--; idx>=0) {
  9. cout << idx << endl;
  10. }
  11.  
  12. return 0;
  13. }
Success #stdin #stdout 0s 5588KB
stdin
Standard input is empty
stdout
Standard output is empty