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

What type of chemical reaction occurs when sodium and chloride combine to form sodium chloride?
What is the slope of the line in the xy plane that passes through the points (-5/2, 1) and (-1/2, 4)?
Maurice has 4 rows of toys with 4 toys in each row how many toys does he have
what are all the poems of Robret Frost
The cooling system device that maintains pressure in order to raise the boiling point of the coolant is called the: Choose one answer. a. water pump. b. radi
Napoleon sold the Louisiana temporary to the United States because he
14×2+4×4= what could it be plz help
The "trustee period" is most associated with which of these eras
The term boomtown was used to describe what kind of western town?
what is happening to a substance undergoing thermal expansion?