Computer Science, asked by XxTankyxX, 5 months ago

Write a program to input two sides of a rectangle from the user and print its area and perimeter [Area = L x B, Perimeter = 2 (L + B)]

Answers

Answered by hasinithirukovaluri
0

Answer:

Program :

l=float(input("Enter length of rectangle: "))

b=float(input("Enter width of rectangle: "))

print("Area of rectangle is" , l*b)

print("Perimeter of rectangle is" , 2*(l+b))

Explanation:

Similar questions