Friday, 4 March 2022

Python Program to find Area of Rectangle

 CODE

def main() : 

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

    length = float (input ("Enter length: ") )

    width = float (input ("Enter width: ") ) 

    ans = length * width

    print ("Area of Rectangle: ", ans) 

main()

save above file as areaofrectangle.py

SCREENSHOT



No comments:

Post a Comment