I have to get number of digits divided by 4 but I get just 0. What is wrong?
1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <iostream>
usingnamespace std;
int main() {
int a;
int b = 0;
cin >> a;
while (a > 0 && a < 0) {
if (a > 99 && a < 1000 && a % 4 == 0)
b = b++;
cin >> a;
}
cout << b;
}