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

write the sentence as an inequality. thirteen is at least the difference of a number v and 1.
y=7x+2 i need this in 10-15 minutes PLEASE
25abc2-15a2b2c algebra
What is the congruence theorem used to prove that the two triangles are congruent?
Help Pls! :( Mr. Clark has a bank balance of –46 dollars at the start of the month. On the 11th, he withdrew 4 dollars. Then on the 24th, he withdrew 6 times th
Sara: "Tell me all about your weekend! Was it nice to be on the beach?" Rose: "It was awful! It rained the whole time and I didn't get to spend any time on the
what do you understand by political theory
Solve the system using elimination. -x + y = 9 X-y=-9 {
Things about South Africa?
Which is not transported by the circulatory system? a. carbon dioxide b. water c. blood cells d. oxygen