In Python programming, compute the circumference of a circle given the radius entered by the user. The circumference of the circle is calculated as follows: (5 Points) C= 2πr
r = float(input("radius of a circle = "))
c = 2*3.1415*r
print(f"circumference of a circle = {c:0.2f}")
Comments
Leave a comment