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