(adsbygoogle = window.adsbygoogle || []).push({ google_ad_client: "ca-pub-2960223314593660", enable_page_level_ads: true }); Program to find area and volume of a circle - TecGlance

Header Ads

Program to find area and volume of a circle



=======AREA, CIRCUFERENCE AND VOLUME ==============



 r=input("Enter the Radius :")

 a=(22.0/7)*(r**2)

 c=2*(2.02/7)*r

 v=(4.0/3)*(22.0/7)*(r**3)

 print "   Area of circle        =",a

 print "   Volume of sphere      =",v

 print "Circumference of Circle  =",c





================ OUTPUT =======================



 Enter the Radius :28

 Area of circle         = 2352

 Volume of sphere      = 65856

 Circumference of Circle  = 168



===============================================

No comments

Powered by Blogger.