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