Question: 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 :

Create a C program that will continue to ask for a number

  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

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!