AssiGnMent oF daShAin & tiHar vacAtiOn.
9) WAP to find the positive,negative, zero.
=> CLS
INPUT "Enter any Number"; N
IF N>0 THEN
PRINT " The number is positive"
ELSE IF N<0 THEN
PRINT " The number is negative "
ELSE
PRINT " The number is zero"
END IF
END
=> CLS
INPUT "Enter any Number"; N
IF N>0 THEN
PRINT " The number is positive"
ELSE IF N<0 THEN
PRINT " The number is negative "
ELSE
PRINT " The number is zero"
END IF
END
Comments
Post a Comment