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
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
Math,
2 months ago
Math,
2 months ago
Political Science,
2 months ago
World Languages,
4 months ago
English,
4 months ago
History,
9 months ago
Physics,
9 months ago
Science,
9 months ago