WRITE A PYTHON PROGRAM TO OBTAIN DIAMETER OF A CIRCLE AND CALCULATE ITS AREA AND CIRCUMFRENCE.
Answers
Answered by
1
Answer:
1.Diameter of a Circle = 2r = 2 * radius
2.Area of a circle is: A = πr² = π * radius * radius
3.Circumference of a Circle = 2πr = 2 * π * radius
Answered by
0
Answer:
d = float(input("Enter diameter:"))
r = d/2
area = 3.14*r*r
circumference = 3.14*d
print(area)
print(circumference)
Similar questions