Loops 1 - while


examples


Classwork

In a text document:

For each, think about input, including variable names and types; prompt the user for input.

  1. Choose a secret word, and have the user keep trying until they guess it.  Print how many tries it took them.
  2. As long as the user keeps entering 1-digit positive numbers, display the square of the number they enter