Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<vector>
- using namespace std;
- int main()
- {
- vector<int> v;
- int temp;
- do{
- cin>>temp;
- v.push_back(temp);
- }while(temp!=42&&(temp%100)==temp);
- v.pop_back();
- //sort(v.begin(),v.end());
- for(auto x:v)
- {
- cout<<x<<endl
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement