1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
using namespace std;

int main (){int counter=0, num=0, first=3, second=5;
    while (num <= 10) {
        if (((num%first==0) || (num%second==0) )&& (num>=first)) {
            cout<<num<<endl;
            ++counter;
        }
        num++;
    }
    cout<<counter<<endl;
    return 0;
}