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