Answer:
See the code below and the algorithm explanation on the figure.
Explanation:
The explanation in order to get the answer is given on the figure below.
Solving this problem with C. The program is given below:
#include <stdio.h>
int main(void) {
int n, Even=0, Odd=0, Zeros=0;
for (;;) {
printf("\nEnter the value the value that you want to check(remember just integers): ");
//IF we input a non-numeric character the code end;
if (scanf("%d", &n) != 1) break;
if (n == 0) {
Zeros++;
}
else {
if (n % 2) {
Even++;
}
else {
Odd++;
}
}
}
printf("for this case we have %d even, %d odd, and %d zero values.", Even, Odd, Zeros);
return 0;
}