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!: Class 9 A or B | Computer | 100 Questions

Programmingway@Eklavya Technosys!: Class 9 A or B | Computer | 100 Questions :  1) Communication comes from the ________ language word.  Ans...