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

how can you find the number of inches in 1 mile? Show your work.​
which statement accurately describes a difference between the declaration of independence and the us constitution
I just wanna make sure the answer I have is correct
What are 4 ways plants respond to their environment?
which of the following statements is true about the division expression 686.54 ÷ a? A. If a is a number greater than 686.54, the quotient will be greater than 1
If sinA=3/5 and cosB=5/13 and if A and B are measures of two angles in Quadrant I, find the exact value of the following functions. cotB = sin2A= 3)cos(5pi/6 +
Is 5 feet greater than 60 inches
Please help ! Determine the number of real solutions for each system .
The Australian desert actually consists of four deserts. Find out the names of these four deserts.
The graph of a certain hyperbola, y=h(x) is shown in the standard (x,y) coordinate plane below Among the following graphs, which best represents y= -h(x)?