482,705 views
35 votes
35 votes
Write a program to input the length and width of a rectangle and calculate and print the perimeter and area of the rectangle.

User Thomasfedb
by
2.5k points

1 Answer

18 votes
18 votes


\tt L=(float(input(


\tt B=(float(input(


\tt P=2*(L+B)


\tt A=L*B


\tt print(


\tt print(

User Turbot
by
3.2k points