#include <iostream>
usingnamespace std;
int main()
{
int num;
cout << "Please enter an integer\n";
cin >> num;
if (num ==0)
{
cout << "Your integer is zero\n:";
}
elseif (num % 2 == 0)
{
cout << "Your integer number is even\n";
}
else
{
cout << "Your integer is odd\n";
}
cout << "Thanks for using our integer program!\n";
}
I have to write a program that asks the same thing: for the user to enter a number and keeps a running total of the number of even and odd numbers seen. If the user enters 0, the program should print the total number of even and odd numbers and exit.