// // A program that finds out how many three digit positive numbers // that are divisible by 7, but not divisible by 4 exist // #include using namespace std; int main() { int next, counter; counter = 0; for (next = 100; next <= 999; next = next + 1) { if ( (next % 7 == 0) && (next % 4 != 0) ) { counter = counter + 1; } } cout << "There are " << counter << " 3-digit numbers that are divisible by 7 but not divisible by 4" << endl; return 0; }