Module Module1
'main function
Sub Main()
'prompt user to enter numbers
Console.Write("Enter first number: ")
Dim firstNumber As Double = Double.Parse(Console.ReadLine())
Console.Write("Enter second number: ")
Dim secondNumber As Double = Double.Parse(Console.ReadLine())
'add two numbers
Dim sum As Double = firstNumber + secondNumber
'show sum
Console.WriteLine("Sum = " + sum.ToString())
'subtract numbers
Dim difference As Double = firstNumber - secondNumber
'show subtract
Console.WriteLine("Difference = " + difference.ToString())
'delay
Console.ReadLine()
End Sub
End Module
Comments
Leave a comment