Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program using c compiler to find the sum, average, smallest and largest number of a series of numbers entered ( use these numbers

Write a program using c compiler to find the sum, average, smallest and largest number of a series of
numbers entered (use these numbers as your test data):
33,10,40,30,22,29,50,69,40,67
where the output of the program is as below:
Program to find the largest number
Please enter a number (type -999 to stop) : 33
Please enter a number (type -999 to stop) : 10
Please enter a number (type -999 to stop) : 40
Please enter a number (type -999 to stop) : 30
Please enter a number (type -999 to stop) : 22
Please enter a number (type -999 to stop) : 29
Please enter a number (type -999 to stop) : 50
Please enter a number (type -999 to stop) : 69
Please enter a number (type -999 to stop) : 40
Please enter a number (type -999 to stop) : 67
Please enter a number (type -999 to stop) : -999
The sum of numbers is 390
The average number is 39
The smallest number is 10
The largest number is 69
Thank you

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions