Computer Science, asked by sanjanachakalabbi, 8 months ago

write a program to calculate area of circle (python programming language)​

Answers

Answered by md9235298
28

Explanation:

Find the Area of a circle in python :

#method 1.

PI = 3.14.

r = float(input('Enter the radius of the circle :'))

area = PI * r * r.

print("Area of the circle is : %.2f" %area)

#method 2.

import math.

r = float(input('Enter the radius of the circle :'))

BRAINLIEST PLEASE ^_^

Answered by Equestriadash
29

The following codes must be typed in script mode, saved and then executed.

CODE 1:

radius = int(input("Enter the radius:")

print("The area of the circle is", radius*3.14159)

OUTPUT:

\tt Enter\ the\ radius: 7

\tt The\ area\ of\ the\ circle\ is\ 21.99113

CODE 2:

radius = int((input("Enter the radius:")

area = radius*3.14159

print("The area of the circle is", area)

OUTPUT:

\tt Enter\ the\ radius: 7

\tt The\ area\ of\ the\ circle\ is\ 21.99113

Similar questions