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
Hindi,
1 month ago
Math,
1 month ago
Math,
1 month ago
Computer Science,
3 months ago
Social Sciences,
3 months ago
Math,
9 months ago
Math,
9 months ago