Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public num1 As Integer
- Public num2 As Integer
- Public answer As Integer
- Sub Main()
- Console.WriteLine("Type a number and press Enter")
- num1 = Console.ReadLine()
- Console.WriteLine("Type another number to add to it and press Enter")
- num2 = Console.ReadLine()
- answer = num1 + num2
- Console.WriteLine("The answer is " & answer)
- Console.ReadLine()
- End Sub
Add Comment
Please, Sign In to add comment