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








4 comments:

Computer for Class - 8 Exercise Solutions

 1. Fill in the blanks (a) Bandwidth refers to the speed to transfer of data over a network. (b) Canvas is working space where images can ...