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
Political Science,
5 months ago
English,
5 months ago
Political Science,
11 months ago
Math,
11 months ago
Biology,
1 year ago
Math,
1 year ago