Answers for "python program to calculate area of circle"

2

area of a circle python

radius = float(input("Enter radius:"))
pi = 3.14
Area = pi * radius * radius
print("Area = " + str(Area))
Posted by: Guest on March-06-2020
0

find the area of a circle in python

import math

radius = 3
area = math.pi * radius * radius
# another way would be to set variable and round - rounded_area = round(area, 3)
print(f'The area of the circle is {area:.3f}')
# round answer to 3 decimal places
Posted by: Guest on July-13-2020

Code answers related to "python program to calculate area of circle"

Python Answers by Framework

Browse Popular Code Answers by Language