Question: When running the program given, it is supposed to give the output bewlow. However, the program contains erros that prevent it from compiling and/or

 When running the program given, it is supposed to give the output  bewlow. However, the program contains erros that prevent it from compiling and/or 

When running the program given, it is supposed to give the output bewlow. 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 using namespace std; const int LIMIT 10; int main () I float counter; int number; int zeros; int odds; int evens; " cout < < "Please enter < < Limit < < " integers, < < "positive, negative, or zeros." < < endl; cout < < "The numbers you entered are: " < < endl; for (counter = 1; counter switch (number / 2) { case 0: evens++; if (number = 0) zeros++; case 1: case 1: odds++; cout

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!