Wednesday, November 6, 2019

Qbasic

Qbasic to display the given number is odd or even

CLS
INPUT "Enter any number"; N

IF N MOD 2 = 0 THEN
PRINT "The number is even number"

ELSE
PRINT "The number is odd number"

END IF
END

No comments:

Post a Comment