#include 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; }