[VISIBLE ONLY LOCALLY] Optionally view what the website will look like at another time (in PDT):
Credit: Chris Piech
Karel dreams of climbing mountains. Teach her to get to the top of a mountain of any height. For example, for the following mountain:
Karel should climb to the top and leave a flag (a beeper) at the summit as shown bellow:
Unlike the previous problems, you are not guaranteed the height of the mountain before hand. The program you write should allow Karel to climb mountains of any size. For example the following three:
You can assume:
Use while loops.