Sunday, 4 March 2012

Read the radious of circle from user and gives area,diameter and circumference of circle programme in python


#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

Compiler for C,C++ and Python {paste your programme to see the output}