Write a program in visual Basic to check wheather the entered number is positive or negative.
Answers
Answered by
1
Explanation:
Module Module1 Sub Main() Dim num As Integer = 0 Dim result As String Console.Write("Enter Your number : ") num = Integer.Parse(Console.ReadLine()) result = If((num < 0), "Given Number is Negative", "Given Number is Positive") Console.WriteLine(result) Console.ReadLine() End Sub End Module
Similar questions