How do we draw a box in QBasic? explain
Answers
Answered by
3
Explanation:
The LINE command can do more that draw line segments. It can be used to draw a rectangle either outlined or filled. BASIC uses the letter B to change the way that LINE works. After the color number you can place another comma and then the letter B to draw an outlined rectangle or the letters BF for a filled one. Think:
B → Box → Rectangle
F → Fill
If you do not want to use a COLOR number (and go with the default color), then you still need placeholder commas, placed as if the color number were present. The example program demonstrates this for the first two rectangles.
Pls rate the answer
Thanks
Similar questions
Math,
5 months ago
Accountancy,
5 months ago
Political Science,
5 months ago
Math,
11 months ago
Social Sciences,
11 months ago
Math,
1 year ago
Math,
1 year ago