This content is archived!
For the 2018-2019 school year, we have switched to using the WLMOJ judge for all MCPT related content. This is an archive of our old website and will not be updated.
For example, a program may ask the user to keep entering a password until it is correct. An additional control variable is also required with these types of loops.
If we needed to find the number of times we need to divide the number 10 by 2 to get a value less than 1, we could do this as follows:
Use a conditional loop to output, in order, all Fibonacci numbers less than 100.