Common Computer Science References
At the end of this lesson, you will be able to:
understand and use a do ... while loop
while loop statement
nil
create using a while loop, since Python does not have a Do...While loop, that will solve this problem:
ask the user for a positive integer, then multiplies all the whole numbers up to that number
fancy math people call this factorial (n!)
yes, python has a math.factorial() function; you are not allowed to use it
Ex: user enters 5: 1x2x3x4x5=120, so 5!=120 is outputted
recreate the same above program in C, but you must use a Do...While loop
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.