Write a program to find area, radius, and circumference in python without using function
import math
radius = float(input("Enter the radius of the circle: "))
area = math.pi * radius**2
circumference = 2 * math.pi * radius
print("Radius of the circle:", radius)
print("Area of the circle:", area)
print("Circumference of the circle:", circumference)
Write a program to find area, radius, and circumference in python using function
import math
def calculate_circle_area(radius):
return math.pi * radius**2
radius = float(input("Enter the radius of the circle: "))
area = calculate_circle_area(radius)
print("Area of the circle:", area)
GUYS IF YOU HAVE ANY DOUBT. PLEASE LET ME KNOW