Common Computer Science References
At the end of this lesson, you will be able to:
understand and use a break statement inside a loop
for loop statement
nil
re-create your number guessing game, again
once again generate a pseudo-random number
use a while loop with just "True" as the Boolean expression
keep asking the user for their guess
if the guess is not correct, tell the use if they are too high or too low
if they do not enter a number, tell them it was not a number
use a break statement to exit the loop when they guess the number correctly
recreate the same above program in C
in C the loop will be:
while (1) {
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.