.NET自由天空
Would you like to react to this message? Create an account in a few clicks or log in to continue.

猜字游戏.........214

向下

猜字游戏.........214 Empty 猜字游戏.........214

帖子  王伟-07网4 周二 三月 18, 2008 8:11 pm

Module Module1

Sub Main()
Const a = 2, b = 1, c = 4
Dim e, f, g As String
Console.WriteLine("猜第一位")
e = Console.ReadLine()
If e = a Then
Console.WriteLine("猜第二位")
f = Console.ReadLine()
End If

If f = b Then
Console.WriteLine("猜第三位")
g = Console.ReadLine
End If

If g = c Then
Console.WriteLine("恭喜!密码被你破译")

End If
Console.WriteLine("失败")

End Sub

End Module

王伟-07网4

帖子数 : 3
注册日期 : 08-03-18

返回页首 向下

返回页首


 
您在这个论坛的权限:
不能在这个论坛回复主题