你能修复这个VB.net脚本吗?

时间:2014-03-19 18:09:19

标签: .net vb.net

它应该选择较小的数字。我无法让它工作谢谢你的帮助我会得到!

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

1 个答案:

答案 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