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 :

- Write your program or upload the screenshot of the program.
- Upload different screenshots of the output.
- Describe the output of your program.
- Write the analysis of your program.
- 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
Get step-by-step solutions from verified subject matter experts
