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

Scenario: Click Here to watch "The Heinz Dilemma." Based on what you have learned all term concerning leadership, ethics, GMC's code of conduct, etc., what are
Current year accounts payable 84,582, previous year accounts payable $66,600
Is Andrew Carnegie a hero?
Solve (ln )2−(ln 2)(ln )<2(ln 2)2.
The area of a circle is 100cm^2.find the area of a sector this circle that subtends a sector angle of n/4 rad
Write the polynomial that represents the perimeter.
A football team has a net yardage of - 15 1/2 yards on a series of plays. The team needs a net yardage of 20 yards to get a first down. How many yards does the
critically discuss how the school could assist the learners in career guidance​
Explain Pro - bronsity
Describe the relationship between the speed Ms Sithole drives a ​