How to calculate circumference of a circle

CODE




How to calculate circumference of a circle:

The circumference of a circle is 2 pie r where r is the radius of the circle.write a python statement that calcualtes and prints the circumfenrence in inches of a cicle whose radius is 8 inches.assume that the constant pie=3.14.

print("Circumference is=",2*3.14*8)

Output:
Circumference is= 50.24

How to calculate circumference of a circle How to calculate circumference of a circle Reviewed by Unknown on December 10, 2018 Rating: 5

No comments:

If you have any doubt or query ,comment below:

Programming copyright © 2018-19. Powered by Blogger.