robertsjr03 robertsjr03
  • 23-09-2021
  • Computers and Technology
contestada

Write a program to input the length and width of a rectangle and calculate and print the perimeter and area of the rectangle.

Respuesta :

Аноним Аноним
  • 25-09-2021

[tex]\tt L=(float(input("Enter\:Length\:of\:rectangle=")))[/tex]

[tex]\tt B=(float(input("Enter\:Breadth\:of\:the\:rectangle=")))[/tex]

[tex]\tt P=2*(L+B)[/tex]

[tex]\tt A=L*B[/tex]

[tex]\tt print("Perimeter\:of\:the\:rectangle=",P)[/tex]

[tex]\tt print("Area\:of\:the\:rectangle=",A)[/tex]

Answer Link

Otras preguntas

- By selling a TV to a store for €1,116, a retailer makes a profit of 24%. (a) How much did the store pay for the TV?
Please help me :( In first paragraph, why was the document written? And what two truths are stated in the beginning of the second paragraph?
How far does a ca4 go
20 points for this question Find the least common multiple of x-1 and 1-x
Which is the constant of proportionality for the data in the table?A 18B 2C 6D 12
A model of fossils formed on land, on the shore, and in water was set up in Ms. Bill’s classroom. One of the students commented that the model gave her the wron
Question 5 Which set of coordinates represents a function? (x, y) (-2, 4) (-1, 1) (0,0) (-1,-1) (-2,-4) (x, y) (0,5) (1, 10) (2, 15) (3, 20) (4, 25) (x, y) (0,0
Find the perimeter of the square: 6x + 1
Can someone explain this to me.... i dont get it Rainwater seeps through the earth’s surface and into the geothermal reservoirs over thousands of years. Studies
what is 65grams:2grams to its simplest form​