Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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++ image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions