write a program in Qbasic to take input of a number and print whether the number is greater than 10 or not
Answers
Answered by
9
The given problem is solved using language - QBASIC.
CLS
INPUT "Enter a number: "; N
IF N > 10 THEN
PRINT "Number is greater than 10."
ELSE
PRINT "Number is less than or equal to 10."
END IF
END
- Line 1: Clears the screen.
- Line 2: Accepts the number from the user.
- Line 3-4: Check if number is greater than 10 or not. If true print "Number is greater than 10."
- Line 5-6: If false, print "Number is less than or equal to 10."
- Line 7: End of if.
- Line 8: End of program.
See the attachments for output.
Attachments:
anindyaadhikari13:
Thanks for the brainliest :D
Answered by
0
Answer:
These are the Steps, you can do in QB64.
Explanation:
Make me Brain List
Attachments:
Similar questions