Question: When running the program given, it is supposed to give the output below. However, the program contains erros that prevent it from compiling and/or running.
When running the program given, it is supposed to give the output below. However, the program contains erros that prevent it from compiling and/or running. Correct the program so that it works properly. The output: Please enter 10 integers, positive, negative, or zeros. The numbers you entered are: 2 7 -4 -3 0 7 4 0 -9 -4 There are 6 evens, which includes 2 zeros. The number of odd numbers is: 4
The Program:
#include
case 1: case -1: odds++; } } cout << endl; cout << "There are " << evens << " evens, " << "which includes " << zeros << " zeros." << endl; cout << "The number of odd numbers is: " << odds << endl; return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
