CBSE Class 9 Computer Applications Question 19 of 23

Introducing Python — Question 12

Back to all questions
12
Question

Question 10

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

Answer
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