它应该选择较小的数字。我无法让它工作谢谢你的帮助我会得到!
Module Module1
Sub Main()
Dim A, B As Integer
System.Console.WriteLine("Type a Number")
System.Console.ReadLine(A)
System.Console.WriteLine("Type another Number")
System.Console.ReadLine(B)
If A>B System.Console.WriteLine(B)
ElseiF A<B System.Console.WriteLine(A)
Else : Console.WriteLine("They are equal silly")
End If
End Sub
End Module
答案 0 :(得分:-1)
Sub Main()
Dim A, B As Integer
Console.WriteLine("Type a Number")
A = Console.ReadLine()
Console.WriteLine("Type another Number")
B = Console.ReadLine()
If A > B Then
Console.WriteLine(B)
ElseIf A < B Then
Console.WriteLine(A)
Else
Console.WriteLine("They are equal silly")
End If
End Sub