C goto Statement
The goto statement allows us to transfer control of the program to the specified label.
File7.1.png
The label is an identifier. When the goto statement is encountered, the control of the program jumps to label: and starts executing the code.
Program to calculate the sum and average of positive numbers
If the user enters a negative number, the sum and average are displayed.
Output

1. Enter a number: 3
2. Enter a number: 4.3
3. Enter a number: 9.3
4. Enter a number: -2.9
Sum = 16.60
Average = 5.53

  
Put the parts in order to form a sentence. When you think your answer is correct, click on "Check" to check your answer. If you get stuck, click on "Hint" to find out the next correct part.