| 3 | using namespace std; |
| 4 | |
| 5 | int main() |
| 6 | { |
| 7 | unsigned int n, divisor, dividend; |
| 8 | int count = 0; |
| 9 | |
| 10 | cin >> n >> divisor; |
| 11 | for(int i = 0; i < n; i++) |
| 12 | { |
| 13 | cin >> dividend; //input k each iteration |
| 14 | if(dividend % divisor == 0) //check if it is divisible |
| 15 | count++; //output |
| 16 | } |
| 17 | cout << count; |
| 18 | } |
nothing calls this directly
no outgoing calls
no test coverage detected