Facebook
From Beige Goat, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 275
  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. }
  15.