Codehub
Photo
Photo
Photo
Photo
Program to calculate area and perimeter of circle
-----------------------------------------
Program:
import math
radius = float(input("Enter radius of the circle: "))
area = math.pi * radius ** 2
perimeter = 2 * math.pi * radius
print("Area of the circle:",area)
print("Perimeter of the circle:", perimeter)
41 · 16.5K ·