#include <iostream>
using namespace std;
bool is_divide_by(int n , int d) {
if (n % d == 0)
return true;
return false;
}
int main() {
int arr[10] = {4, 45, 76, 12, 63, 98, 83273, 62, 23, 100};
int count = 0, n = 3;
for (int i = 0; i < sizeof(arr)/sizeof(int); i++) {
if (is_divide_by(arr[i], 3)) {
cout << arr[i] << endl;
count++;
}
}
cout << "total = " << count;
}
/*
run:
45
12
63
total = 3
*/