Friday, 4 March 2022

Python program to find Area of Circle

 CODE

def main() : 

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

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

    ans = 3.14 * rd *rd

    print ("Area of Circle: ", ans) 

main()

save above file as : areaofcircle.py

SCREENSHOT




No comments:

Post a Comment