//Iterator declaration Systems. #include <iostream> using namespace std; int main() { vector v; int n; cin>>n; for (int i = 0; i < n; ++i) { int x;cin>>x; v.push_back(x); } // 1st approch /*vector :: iterator it = v.begin(); for (it = v.begin(); it!=...

Markdown supported · ⌘↵ to post
MD. Shuvo
Adnanul Islam
I am a programmer.I love coding. My hobby is problem solving.
We may apply it for each as well, and I think it to be simpler.