Thursday, October 24, 2019

QBasic to dislpay positive,Negative or Zero

CLS
INPUT"Enter any number";N
IF N=0 THEN
PRINT"Given number is positive"
ELSE IF N<0 THEN
PRINT"Given number is negative"
ELSE
PRINT"Given number is zero"
END IF
END

No comments:

Post a Comment

Radio wave

 Radio wave     is an electromagnetic wave of a frequency between about   10 4  and 10 11  or 10 12  Hz , as used for long distance communic...