Imports System
Public Class MainClass
Shared Sub Main(ByVal args As String())
Dim number1, number2 As Integer
' read first number from user
Console.Write("Please enter first integer: ")
number1 = Console.ReadLine()
' read second number from user
Console.Write("Please enter second integer: ")
number2 = Console.ReadLine()
If number1 = number2 Then
Console.WriteLine("{0} = {1}", number1, number2)
End If
If number1 <> number2 Then
Console.WriteLine("{0} <> {1}", number1, number2)
End If
If number1 < number2 Then
Console.WriteLine("{0} < {1}", number1, number2)
End If
If number1 > number2 Then
Console.WriteLine("{0} > {1}", number1, number2)
End If
If number1 <= number2 Then
Console.WriteLine("{0} <= {1}", number1, number2)
End If
If number1 >= number2 Then
Console.WriteLine("{0} >= {1}", number1, number2)
End If
End Sub
End Class
|