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

1. Why are standing committees known as subject matter committees? (1 point)(A)They create new subjects and thereby new committees. (B)They are only used for cu
what times itself equals 32 (sorry i suck at maths)
is 7.27 greater that 0.76?
what times itself equals 32 (sorry i suck at maths)
Ella Fitzgerald, an American jazz singer, became world famous because of the wide range and the richness of her voice. She is also noted for her mastery of rhyt
By using the full title of the German government Wilson most likely hopes to
the sender’s address on the envelope is called the __________ address.
The hot wires in a service entrance panel are most likely to be covered with ________ insulation. A. red B. green C. gray D. white
Increased awareness of water contamination can help reduce its effects. Please select the best answer from the choices provided T F
For history class, Ross has to write a research paper on an aspect of the 1960s. Since he loves music, Ross has narrowed down his topic to music of the 1960s. A