83.4k views
5 votes
To assign length and breadth to display area of a rectangle​

User ManIkWeet
by
4.3k points

1 Answer

5 votes

Answer:

In Python:

Length = float(input("Length: "))

Breadth = float(input("Breadth: "))

Area = Length * Breadth

Print(Area)

Step-by-step explanation:

Get values for length and breadth

Length = float(input("Length: "))

Breadth = float(input("Breadth: "))

Calculate area

Area = Length * Breadth

Print area

Print(Area)

User Gualberto
by
4.1k points