File-> New Project -> Console Application:
Code:
Module Module1
Sub Main()
Console.WriteLine("Enter A Number")
Dim X As Decimal
Dim Check As VariantType
Try
Check = Console.ReadLine()
If IsNumeric(Check) Then
X = Check
End If
Dim Y As Decimal
Console.WriteLine("Enter A Second Number")
Check = Console.ReadLine()
If IsNumber(Check) Then
Y = Check
End If
Catch e As Exception
Console.WriteLine(vbNewLine & "Enter A Number ONLY!!" & vbNewLine & vbNewLine)
Console.WriteLine(e.ToString)
Console.WriteLine(vbNewLine & vbNewLine & "Please Press any key to continue!")
Console.ReadKey()
End Try
End Sub
End Module
I think thats how u do it... Not sure. Don't program in vb and I don't got it installed currently.
Edit: Will go test it now.. Got visual studio 2010 ultimate.. hope it works :P
Edit2: that works.. Guess I skipped the hello world lol.. thats the first vb program I ever wrote :P Oh and you can just add in the other numbers.. My example only gave the user the chance to enter 2 numbers.. you can easily add more integers and add all four of them.. also try adding a check to see if the input is not a number.