Common Computer Science References
At the end of this lesson, you will be able to:
understand and use a nested loop
continue statement
go over Nested Loops , Computer Based Problem Solving
show demo of nested loop odometer
create your own program using nested loops that does the following:
RGB values are used to represent colors
their values go from 0 to 255 (1 byte!)
create a program that prints out ALL the valid RGB values
hint a 3 nested loop!
ex: RGB(0,0,0)
RGB(0,0,1)
RGB(0,0,2)
...
RGB(0,0,255)
RGB(0,1,0)
...
RGB(255,255,255)
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.