Computer Science, asked by arpanabrbgmailcom, 5 months ago

Write the program in python for calculate the area of rectangle.​

Answers

Answered by srivastavaishan854
3

Answer:

width = float(input("enter width"))

height = float( input("enter height"))

area = width * height

print("Area of rectangle is = ",area)

Answered by Dlepcha
1

Answer:

width = float(input('Please Enter the Width of a Rectangle: '))

height = float(input('Please Enter the Height of a Rectangle: '))

# calculate the area

Area = width * height

# calculate the Perimeter

Perimeter = 2 * (width + height)

print("\n Area of a Rectangle is: %.2f" %Area)

print(" Perimeter of Rectangle is: %.2f" %Perimeter)

Similar questions