Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

qbasic program to check whether the given number is odd or even​

Sagot :

Answer:

CLS

INPUT "Enter a Number: ", n

IF n MOD 2 = 0 THEN

PRINT "Input Number is Even"

END IF

IF n MOD 2 = 1 THEN

PRINT "Input Number is Odd"

END IF

END

Explanation:

CLS

INPUT "Enter a number:",N

IF N MOD 2=0 THEN

PRINT "given number is even"

ELSE

PRINT"given number is odd"

END IF

END