Imports System
Public Class exercise53
Public Shared Sub Main()
Dim a, b As Integer
Dim operation As Char
Console.Write("Enter first number: ")
a = Convert.ToInt32(Console.ReadLine())
Console.Write("Enter operation: ")
operation = Convert.ToChar(Console.ReadLine())
Console.Write("Enter second number: ")
b = Convert.ToInt32(Console.ReadLine())
If operation = "+"c Then
Console.WriteLine("{0} + {1} = {2}", a, b, a + b)
ElseIf operation = "-"c Then
Console.WriteLine("{0} - {1} = {2}", a, b, a - b)
ElseIf (operation = "x"c) OrElse (operation = "*"c) Then
Console.WriteLine("{0} * {1} = {2}", a, b, a * b)
ElseIf operation = "/"c Then
Console.WriteLine("{0} / {1} = {2}", a, b, a / b)
Else
Console.WriteLine("Wrong Character")
End If
End Sub
End Class