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/3 cup of flour is used to make 5 dinner rolls. A. How many flour is needed to make one dinner roll? B.How many rolls can be made with 5 2/3 cups of flour?
Which additional word or words in the sentence should be capitalized? When David registered for college, he signed up for physics 300 and art history 200. Choos
what would be the next three patterns 192,96,48,24
what is 0.005 in percent and fraction
A dollhouse has a volume given by the trinomial y^3 - 5y^2 - 6y What are the possible dimensions of the box?
what problem might the republic of texas face
Explain briefly why it is important to read good exposition.
1.) Which literary writing style uses humor to comment on serious subject matter? A) satire B) essay C) tragedy D) allegory 2.) Absurdism is the attempt to show
the arnold family arrived at the beach at 10:30.they spent 3 ¾ hour at the beach what time did they leave the beach
What type of interest will earn you the most amount on your money? a. feeding b. compound c. ample d.simple What is the amount by which a company or indi