Write a QBASIC program to take input of radius from the user. Calculate and
display Area and Circumference of a circle with a proper message. [10M]
Formula
1. Area = 3.14 * radius * radius
2. Circumference = 2 * 3.14 * radius
Answers
Answered by
6
Question:-
- Write a QBASIC program to take input of radius from the user. Calculate and display Area and Circumference of a circle with a proper message.
Formula:-
- Area = 3.14 * radius * radius
- Circumference = 2 * 3.14 * radius
_________
Code:-
CLS
PRINT "ENTER RADIUS OF THE CIRCLE"
INPUT R
A= 3.14*R*R
C=2*3.14*R
PRINT "AREA"+A
PRINT "CIRCUMFERENCE"+C
END
_______
Variable Description:-
- C :- To store circumference of the circle.
- A :- To store Area of the circle.
- R :- To accept input from the user.
Similar questions
Math,
2 months ago
Chemistry,
2 months ago
Computer Science,
6 months ago
Social Sciences,
6 months ago
Math,
11 months ago
Math,
11 months ago