Question: a. Write a program that will count the number of odd values and the number of even values in a collection of N numbers.

a. Write a program that will count the number of odd values and the number of even values in a collection of N numbers. Get the value of N before scanning each value in the collection of N numbers. b. Modify your program to compute and display the sum of odd values, the sum of even values, the square of the sum of odd values, and the sqaure of the sum of even values. The above mentioned point should be covered in the same program only.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
