Question: in c not c++ Exercise Objectives Using for loop Using counter-controlled repetition Problem Description Write and run a C program that asks the user to
Exercise Objectives Using for loop Using counter-controlled repetition Problem Description Write and run a C program that asks the user to input 20 numbers. Then it will print the sum and average as follows: The odd numbers of the first 10 numbers. The even numbers of the second 10 numbers. Sample Output Please enter number 1: 10 Please enter number 2: 9 Please enter number 3:8 Please enter number 4:3 Sum of odd number = 12 Average of odd numbers = 6 Sum of even number = 18 Average of even numbers = 9 Total sum=30 Total average = 7.5
Step by Step Solution
There are 3 Steps involved in it
To solve this problem we need to follow these steps Initialize Variables Define variables to store s... View full answer
Get step-by-step solutions from verified subject matter experts
