'Modify the code below, so it always prints a positive number (>= )
Imports System
Public Module Module1
Public Sub Main()
Console.WriteLine("Hello World")
Dim n as integer
n = console.ReadLine()
Dim IsValid as boolean
IsValid = ValidateNum(n)
'Console.writeline(IsValid.toString())
Console.WriteLine(n)
End Sub
Public Function ValidateNum(n as integer) as boolean
If n >= 0 then
return true
else
return false
end if
End Function
End Module