Write a qbasic program to calculate area and circumference of circle
Answers
Answered by
9
Program:
CLS
LET pie = 3.14
INPUT "Enter radius of circle"; r
area= pie * r ^ 2
cf = 2 * pie * r
PRINT "The area of the circle is"; area
PRINT "The circumference of the circle is"; cf
END
Similar questions
Math,
2 months ago
Political Science,
2 months ago
Math,
5 months ago
Accountancy,
1 year ago
Math,
1 year ago