#read the radious of circle from user and display area,diameter and #circumference of circle
- def Radious(x):
area=x*x*3.141
dia=2*x
circum=2*x*3.141
print 'area is ',area
print 'diameter of circle is ',dia
print 'circumference of circle is',circum
- def main():
rad=input("Enter the radius of the circle:-")
Radious(rad)
main()
No comments:
Post a Comment