Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int v[1001];
- int main ()
- {
- int i, n, ok=1, x;
- cin>>n;
- for(i=1; i<=n; i++)
- {
- cin>>v[i];
- }
- for(i=1; i<=n; i++)
- {
- if(v[i]%10==2)
- {
- cout<<v[i]<<" ";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement