Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. secret = Rnd(1,99)
  2. Local guess:String
  3.  
  4. Print "Welcome to the guessing game."
  5. guess = Input("What is your guess? : ")
  6.  
  7.  
  8. If guess = secret Then
  9. Print "Correct!"
  10. End
  11. EndIf
  12. If guess < secret Then Print "Too Low!"
  13. If guess > secret Then Print "Too High!"
  14.  
  15. guess = Input("What is your guess this time? : ")
  16. If guess = secret Then
  17. Print "Correct!"
  18. End
  19. EndIf
  20. If guess < secret Then Print "Too Low!"
  21. If guess > secret Then Print "Too High!"
  22.  
  23. guess = Input("What is your guess this time? : ")
  24. If guess = secret Then
  25. Print "Correct!"
  26. End
  27. EndIf
  28.  
  29. If guess < secret Then Print "Too Low!"
  30. If guess > secret Then Print "Too High!"
  31.  
  32. guess = Input("What is your guess this time? : ")
  33. If guess = secret Then
  34. Print "Correct!"
  35. End
  36. EndIf
  37.  
  38. If guess < secret Then Print "Too Low!"
  39. If guess > secret Then Print "Too High!"
  40.  
  41. guess = Input("What is your guess this time? : ")
  42. If guess = secret Then
  43. Print "Correct!"
  44. End
  45. EndIf
  46.  
  47. If guess < secret Print "Too Low!" Or guess > secret Print "Too High!"
  48. Print "End of the game! You lose! The answer was " + secret + "!"
  49. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement