Computer Science, asked by reenakumaririya, 2 months ago


Write QB64 statements to find out the number entered by the user is "odd" or "even". Print appropriate message. Write commands for the above QB64 statements.​

Answers

Answered by atrs7391
1

CLS

INPUT "ENTER A NUMBER";N

IF N MOD 2=0 THEN

PRINT "NUMBER GIVEN IS EVEN"

ELSE

PRINT "NUMBER GIVEN IS ODD"

END IF

END

Similar questions