Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int tab[10],i;
  6. for(i=0; i<10; i++)
  7. {
  8. cin >> tab[i];
  9. if(tab[i]%3==0 && tab[i]%5==0)
  10. cout << tab[i] << endl;
  11. }
  12. system("pause");
  13. return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement