Common Computer Science References
At the end of this lesson, you will be able to:
understand and use nesting loops and if statements inside each other
if statement
watch the "FizzBuzz" video below
create a program that, using loops and if statement, prints the integers from 1000 to 2000 with five integers per line
Hint:
use the %, it is modulus operator in most programming languages (7%2=1)
in python3 to keep the cursor on the same line use print("Some text input", end = "")
print is actually a function with a default value of end = "\n", which you are removing
read Loops and If Statements , Computer Based Problem Solving
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.