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

Solve the system of equations using any method. If there is no solution, write "Inconsistent". If there are infinitely many solutions, write "Dependent." ( 2x +
All 14 members of the high school swim team borrowed $8 each from their coach to purchase dinner while at an away meet. Write a multiplication expression to det
1/3x+y=4 solve the equation for y
What geometric term does the flight path of a plane on radar best represent
a spherical mirror is cut in half horizontally will an image be formed by the bottom half of the mirror how
I need help finding out the types of maps please and thank you
What level of organization are humans? *. a. Organ b. Community c. Ecosystem d. Population
twice a day the tide moves from london to the ocean and
Select the type of error illustrated by the following sentence. Gail found her dog in the laundry, he was sleeping in the warm, clean sheets. A. comma splic
Scientific Method Worksheet (A LOT OF POINTS)