Dim Awnser As String
Sub Main()
Console.Title = "Math Program"
Console.WriteLine("숫자더하기 of 5+5 ?")
Awnser = Console.ReadLine()
If Awnser = "10" Then
Console.Clear()
Console.WriteLine("you win!!")
Console.ReadLine()
Dim Awnser As String Dim fAwnser As String Sub Main() Do Console.Title = "Math Program" Console.WriteLine("숫자더하기 of 5+5 ?") Awnser = Console.ReadLine() If Awnser = "10" Then Console.Clear() Console.WriteLine("you win!!") Console.ReadLine() Else Console.Clear() Console.WriteLine("you Lost!!") Console.ReadLine() End If Console.WriteLine("그만 하시겠습니까?(y/n)") fAwnser = Console.ReadLine
Module Module1
Dim Awnser As String
Dim fAwnser As String
Sub Main()
Do
Console.Title = "Math Program"
Console.WriteLine("숫자더하기 of 5+5 ?")
Awnser = Console.ReadLine()
If Awnser = "10" Then
Console.Clear()
Console.WriteLine("you win!!")
Console.ReadLine()
Else
Console.Clear()
Console.WriteLine("you Lost!!")
Console.ReadLine()
End If
Console.WriteLine("그만 하시겠습니까?(y/n)")
fAwnser = Console.ReadLine
Loop Until fAwnser ="y" or fAwnser ="Y"
End Sub
End Module
이 댓글을