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 is 10 degrees lower than -6 degrees celsius
How did the people of Great Zimbabwe positively interact with their environment?
What was the goal of the Marshall Plan?
What were the three social classes of the feudal system?
how do you say 'look at the board' 'listen' 'open the windows' 'close the door' 'repeat' 'stand up' 'silence' 'take out your books' 'pack away your things' 'sit
What were some of the effects of King Solomon’s reign?
How did the physical geography of Greece cause Greek-speaking peoples to develop separate, isolated communities?
The volume of 100 drops of a liquid is 1 fluid ounce. What is the volume of 10 drops?
Which of the following is not a major economic activity of the Outback? a. Agriculture b. Tourism c. Fishing d. Mining
Which is the subordinate clause in the sentence? Some additional clues were found when a small pit, with linen bags and broken pottery, was discovered in 1907.