Asked by Abdul Muksin
Write a QBASIC program that calculates the area of a circle, a rectangle and a triangle. The program should allow the user to select the shape (C or c for circle, R or r for Rectangle, T or t for Triangle) whose area he or she wants calculated. It should then accept the dimensions of the shape, and calculate and print the area . The table below details the formula and dimensions to use for each of the shapes.
Answers
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.