Common Computer Science References
At the end of this lesson, you will be able to:
understand and use a continue statement inside a loop
break statement
nil
create a program that does the following, using a continue statement
ask the user how many numbers they would like to add together (a loop)
inside the loop, ask the user to enter a number to add
add it to your current sum, BUT if it is negative do not
use a continue for this part
see example output below
recreate the same above program in C
NOTE: You can turn on "Closed Captions" to see a printout of what is being said by selecting the "CC" button.
You can also have it translate the closed captions by going to "Settings, Subtitles/CC, Auto-translate" and then pick your prefered language.