C continue
The continue statement skips the current iteration of the loop and continues with the next iteration. Its syntax is:
continue;
Program to calculate the sum of numbers (10 numbers max)
If the user enters a negative number, it's not added to the resultOutput
Enter a n1: 1.1
Enter a n2: 2.2
Enter a n3: 5.5
Enter a n4: 4.4
Enter a n5: -3.4
Enter a n6: -45.5
Enter a n7: 34.5
Enter a n8: -4.2
Enter a n9: -1000
Enter a n10: 12
Sum = 59.70
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.