Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module Module1
- Sub Main()
- Console.WriteLine("First number:")
- Dim num1 As Integer = Console.ReadLine
- Console.WriteLine("Second number:")
- Dim num2 As Integer = Console.ReadLine
- Console.WriteLine("What Operation? (symbol only)")
- Dim operation As String = Console.ReadLine
- If operation = "+" Then
- Console.WriteLine(num1 + num2)
- ElseIf operation = "*" Then
- Console.WriteLine(num1 * num2)
- ElseIf operation = "-" Then
- Console.WriteLine(num1 - num2)
- ElseIf operation = "/" Then
- Console.WriteLine(num1 / num2)
- End If
- Console.ReadLine()
- End Sub
- End Module
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement