You are viewing a single comment's thread. Return to all comments →
This is the solution using std vector:
int main() { int n; cin>>n; int nr; vector v; for (int i =0; i>nr; v.push_back(nr); } for (int i = v.size() -1 ; i>=0; i--){ cout<
Seems like cookies are disabled on this browser, please enable them to open this website
Arrays Introduction
You are viewing a single comment's thread. Return to all comments →
This is the solution using std vector:
int main() { int n; cin>>n; int nr; vector v; for (int i =0; i>nr; v.push_back(nr); }
for (int i = v.size() -1 ; i>=0; i--){ cout<