How to write a program that takes the radius of a circle as an input, and then prints the value of the circumference and area of the circle. Format your output to 2 digits after the decimal. How to write it in python?
Answers
Answered by
0
Answer:
def circumAndArea(float r)
{
print("Area of circle is :)
print ("{0:.2f}".format(3.14*r*r))
print("Circumference of circle is :)
print("{0:.2f}".format(2*3.14*r))
}
Similar questions