Question: Using while loop, write a complete C code where you will ask the user to enter a positive integer number and your code should: 1

Using while loop, write a complete C code where you will ask the user to enter a positive integer number and your code should:
1- Sum up all the odd numbers between 1 and the entered number (inclusive)
2- Count how many numbers are odd.
3- Calculate the average value of the odd numbers.
4- Display the results on screen.

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