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

in c not c++ in c not c++ Exercise Objectives Using for loop Using counter-controlled repetition

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

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to follow these steps Initialize Variables Define variables to store s... View full answer

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 Databases Questions!