Sunday, February 1, 2026

To check whether number is positive or negative.

Check whether the number is negative or positive after taking a number as input from the user.

TextWindow.WriteLine("Enter any Number ")

num=Textwindow.ReadNumber()

If num<0 Then

  TextWindow.WriteLine("It's Negative Number")

Else

  TextWindow.WriteLine("It's Positive Number ")

EndIf

Output








No comments:

Post a Comment

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho...

Programmingway@Eklavya Technosys!: Computer Solutions || Class-4 || Computer for Scho... :  1) Choose correct one :- 1) The step by step pla...