Imports Microsoft.VisualBasic
Dim guess, attempts, correct as integer
correct = CInt(100*Rnd())+1
Console.WriteLine(correct)
Console.WriteLine("Enter the number I am thinking of between 1 and 100!!!" )
guess = Console.ReadLine()
Console.WriteLine(guess & " is too low, try again")
Console.WriteLine(guess & " is too high,try again")
Console.WriteLine(attempts)
Console.WriteLine(correct)
guess = Console.Readline()
Console.WriteLine("It took you " & attempts +1 & " attempts to guess the number I was thinking of!!!")