18
1
Imports System
2
Public Module Module1
3
Public Sub Main()
4
'Prompt for a number
5
Console.Write("Enter a number: ")
6
7
'Store the input and declare a converted value
8
Dim strInput As String = Console.ReadLine()
9
Dim dblInput As Double
10
11
'Check if the conversion was a success
12
If Double.TryParse(strInput, dblInput) Then
13
Console.WriteLine("Thank you for following instructions!")
14
Else
15
Console.WriteLine("That was not a number.")
16
End If
17
End Sub
18
End Module
Cached Result