Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 792 Bytes

File metadata and controls

22 lines (20 loc) · 792 Bytes

client-a.md

Guess the number

  • Variable random_num = randint(1,10)
  • Program chooses the random number between 1 and 10
  • Store the random number in a variable named random_num

for loop w/ range(3)

  • Enter "Enter guess number 1:"
  • Guess number 1 into variable guess_1
  • Compare guess_1 = random_num
    • If true, print "Congratulations, you guessed the number"s
    • If false, Enter "Enter guess number 2:"
  • Guess number 2 into variable guess_2
  • Compare guess_2 = random_num
    • If true, print "Congratulations, you guessed the number"s
    • If false, Enter "Enter guess number 3:"
  • Guess number 3 into variable guess_2
  • Compare guess_3 = random_num
    • If true, print "Congratulations, you guessed the number"
    • If false, print "You are out of guesses"
  • End loop