• Irv Kalb


In this chapter, we’ll build a Guess the Number program. The computer will pick a random number between 1 and 20, and the user will have five attempts to guess the number. For every incorrect guess, the computer will let the user know if the correct answer is higher or lower than the user’s guess. If the user doesn’t guess the answer in five attempts, the program will tell the user what the number was.

Copyright information

© Irv Kalb 2018

Authors and Affiliations

  • Irv Kalb
    • 1
  1. 1.Mountain ViewUSA

Personalised recommendations