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

Popular posts from this blog

State use of pep and pip