5.猜數字遊戲

Dim d As Integer

ttt: Console.Write("請輸入一數:")

d = Console.ReadLine()

If d < 3 Then

Console.Write("輸入的數太小了!")

GoTo ttt

ElseIf d > 3 Then

Console.Write("輸入的數太大了!")

GoTo ttt

Else

Console.Write("正確答案!")

End If

Console.ReadKey()