write a QBASIC program to write whether the given number is odd or even.

 write a QBASIC program to write whether the given number is odd or even.


CLS PRINT "Enter a number: "; INPUT n IF n MOD 2 = 0 THEN PRINT n; " is even." ELSE PRINT n; " is odd." END IF

Comments

Popular posts from this blog