猜猜猜数字拉
猜猜猜数字拉
Module Module1
Sub Main()
Const a As Integer = 123
Const b As Integer = 456
Const c As Integer = 789
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
Sub Main()
Const a As Integer = 123
Const b As Integer = 456
Const c As Integer = 789
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- 帖子数 : 3
注册日期 : 08-03-18
您在这个论坛的权限:
您不能在这个论坛回复主题