fork download
  1. #include <iostream>
  2. #include <vector>
  3.  
  4. int main()
  5. {
  6. std::vector<int> myVector = {0,1,2,3,4,5,6,7,8,9};
  7.  
  8. for(unsigned i = myVector.size(); i--> 0; )
  9. {
  10. std::cout << myVector[i] << std::endl;
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3028KB
stdin
Standard input is empty
stdout
9
8
7
6
5
4
3
2
1
0