Imports System
Public Module Module1
Public Sub Main() 'add print statements in main
dim n as integer
console.writeline("hi")
Validate_Num(n)
End Sub
Public function Validate_Num(n as integer) 'functions returns values, can dim as boolean to do true or false
console.writeline("enter a number")
n = console.readline()
if n >= 0 then
console.writeline("True")
else
console.writeline("False")
end if
return n 'this removes an error even though ity still "works" without it
end function
End Module
'functions are used to reuse code in another part of the program