CBSE Class 11 Computer Science Question 43 of 48

Python Programming Fundamentals — Question 43

Back to all questions
43
Question

Question 30

Write a Python program that accepts radius of a circle and prints its area.

Solution
r = float(input("Enter radius of circle: "))
a = 3.14159 * r * r
print("Area of circle =", a)
Output
Enter radius of circle: 7.5
Area of circle = 176.7144375
Answer

r
=
float
(
input
(
"Enter radius of circle: "
))
a
=
3.14159
*
r
*
r
print
(
"Area of circle ="
,
a
)
Output
Enter radius of circle: 7.5
Area of circle = 176.7144375