Python program that will calculate area and circumference of circle using inbuilt Math module. ((MSBTE Pratical Question))
Code:
import math
r = float(input("Enter the radius: "))
area = math.pi * r * r
cir = 2 * math.pi * r
print("Area of Circle:",area)
print("Circumference of Circle:",cir)
Output:
Comments
Post a Comment