Friday, 4 March 2022

Python Program to Find Area of Cylinder

 CODE

def main() : 

    print ("This program computes the area of Cylinder") 

    rd = float (input ("Enter Radius of Cylinder: ") )

    h = float (input ("Enter Height of Cylinder: ") ) 

    ans = 2 * 3.14 * rd * h + 2 * 3.14 * rd *rd

    print ("Area of Cyclinder: ", ans) 

main()

save file as areaofcylinder.py


SCREENSHOT



No comments:

Post a Comment