Write a QBASIC program to determine and display "Odd" or "Even".
Answers
Answered by
1
Answer:
QBasic Program to Check if Number is Even or Odd
Write a program in QBasic to check if the input number is even or odd.
Program using IF..ELSE CLS INPUT "Enter a Number: ", n IF n MOD 2 = 0 THEN PRINT "Input Number is Even" ELSE PRINT "Input Number is Odd" END IF END.
Similar questions