Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a C program that will continue to ask for a number until you input -1. In the end, it will display the sum and

Create a C program that will continue to ask for a number until you input -1. In the end, it will display the sum and average of the numbers. If at the start you input -1 immediately it will display on-screen " no numbers were inputted!".

Sample output :

image text in transcribed

  1. Write your program or upload the screenshot of the program.
  2. Upload different screenshots of the output.
  3. Describe the output of your program.
  4. Write the analysis of your program.
  5. Upload the flowchart of the program
Enter Number, -1 to end: -1 No numbers were inputted! Sample Out 2 Enter Number, -1 to end: 6 Enter Number, -1 to end: 8 Enter Number, -1 to end: 4 Enter Number, -1 to end: 1 Enter Number, -1 to end: 9 Enter Number, -1 to end: -1 Sum of 5 number(s) is 28. Average: 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

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

ISBN: 133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

LO2 Distinguish among three types of performance information.

Answered: 1 week ago