December 30, 2016

Qbasic program to check the entered number is Positive, Negative or Zero.

CLS
INPUT "Enter a number: ",N
IF N > 0 THEN
PRINT "The number is Positive."
ELSEIF N < 0 THEN
PRINT "The number is Negative."
ELSE
PRINT "The number is Zero."
END IF
END

3 comments:

  1. Thanks for the best answers all time. It has helped me a lot &it also heped me with my project 😄😊😁☺👍😄

    ReplyDelete
  2. Thank you so much. It helped me a lot

    ReplyDelete

Note: Only a member of this blog may post a comment.