Computer Science, asked by ItzNad, 7 months ago

Write a program to print whether a number is an odd or even number,QBASIC​

Answers

Answered by Anonymous
2

Answer:

  • rєm. cls. ínput “єntєr αnч numвєr”; n. ífn mσd 2 = 0 thєn. ...

  • dєclαrє suв chєck (n) cls. ínput “єntєr αnч numвєr”; n. ...

  • suв chєck (n) íf n mσd 2 = 0 thєn. príntn; “ís єvєn numвєr” ...

  • dєclαrє functíσn chєck$ (n) cls. ínput “єntєr αnч numвєr”; n. ...

  • functíσn chєck$ (n) íf n mσd 2 = 0 thєn. chєck$ = “єvєn numвєr”

Answered by smileeee
0
QBasic Programming
REM. CLS. INPUT “ENTER ANY NUMBER”; N. IF N MOD 2 = 0 THEN. ...
DECLARE SUB CHECK (N) CLS. INPUT “ENTER ANY NUMBER”; N. ...
SUB CHECK (N) IF N MOD 2 = 0 THEN. PRINT N; “IS EVEN NUMBER” ...
DECLARE FUNCTION CHECK$ (N) CLS. INPUT “ENTER ANY NUMBER”; N. ...
FUNCTION CHECK$ (N) IF N MOD 2 = 0 THEN. CHECK$ = “EVEN NUMBER”




Hope this helps.




Please mark as brainliest...............
Similar questions