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

猜谜语游戏大家玩

向下

猜谜语游戏大家玩 Empty 猜谜语游戏大家玩

帖子  金元生(07网4) 周二 三月 18, 2008 8:27 pm

Module Module1

Sub Main()
Const a As Integer = 1

Const b As Integer = 2

Const c As Integer = 3

Dim d As Integer

d = Console.ReadLine()

If d = a Then

Console.WriteLine("恭喜您猜对了")

d = Console.ReadLine()

If d = b Then

Console.WriteLine("恭喜您猜对了")

d = Console.ReadLine()

If d = c Then

Console.WriteLine("恭喜您全部猜对")

Else
Console.WriteLine("对不起,您猜错了")

End If

Else
Console.WriteLine("对不起,您猜错了")

End If
Else

Console.WriteLine("对不起,您猜错了")



End If

End Sub

End Module
金元生(07网4)
金元生(07网4)

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

返回页首 向下

返回页首


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