write a qbasic program to find out even or odd number where number is user input
Answers
Answered by
14
Answer:
Explanation:
CLS
INPUT A
IF A MOD 2 =0 THEN
PRINT "EVEN";
ELSE
PRINT "ODD";
END IF
END
SUB......END SUB
DECLARE SUB EOO(A)
INPUT A
CALL EOO(A)
END
SUB EOO(A)
IF A MOD A = 0 THEN
PRINT "EVEN"
ELSE
PRINT "ODD"
END IF
END SUB
Answered by
5
Explanation:
Here Is your Answer bro Thanks
Attachments:
Similar questions