Question: Program must be done in C Write a C program (no function needed) that defines an array that can hold 10 ints. Use a loop
Write a C program (no function needed) that defines an array that can hold 10 ints. Use a loop to allow the user to enter 10 integers and store them in the array. Count the number of even and odd numbers entered and print the results. Sample Run: Enter int: 13 Enter int: 2 Enter int: 4 Enter int: 55 Enter int: 43 Enter int: 98 Enter int: 12 Enter int: 32 Enter int: 43 Enter int: 1 You entered 5 even and 5 odd numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
