Practice #9 - COIN 70a

WHILE Loops

Assignment:

   1. Create a new document. Using while, print all odd numbers on the browser page between 1 and 100.
   2. Let's play Guess my Favorite TV program! Set up a variable with your favorite program.
   Prompt the user for what they think is your favorite program. Build in a little error checking.
   Keep prompting them until they pick the correct program. If they don't get it right after 2 tries,
   give them a hint.
      Hint: Use an IF. When they get it right, congratulate them!

BACK