Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- secret = Rnd(1,99)
- Local guess:String
- Print "Welcome to the guessing game."
- guess = Input("What is your guess? : ")
- If guess = secret Then
- Print "Correct!"
- End
- EndIf
- If guess < secret Then Print "Too Low!"
- If guess > secret Then Print "Too High!"
- guess = Input("What is your guess this time? : ")
- If guess = secret Then
- Print "Correct!"
- End
- EndIf
- If guess < secret Then Print "Too Low!"
- If guess > secret Then Print "Too High!"
- guess = Input("What is your guess this time? : ")
- If guess = secret Then
- Print "Correct!"
- End
- EndIf
- If guess < secret Then Print "Too Low!"
- If guess > secret Then Print "Too High!"
- guess = Input("What is your guess this time? : ")
- If guess = secret Then
- Print "Correct!"
- End
- EndIf
- If guess < secret Then Print "Too Low!"
- If guess > secret Then Print "Too High!"
- guess = Input("What is your guess this time? : ")
- If guess = secret Then
- Print "Correct!"
- End
- EndIf
- If guess < secret Print "Too Low!" Or guess > secret Print "Too High!"
- Print "End of the game! You lose! The answer was " + secret + "!"
- End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement