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

PLEASE HELP ME? The lines s and t intersect at point R. What is the value of y?
An effort to violently overthrow or harm the government is called _____.
Corn beans and squash the three _
What French king followed Louis XVIII? Louis Philippe Napoleon Bonaparte Charles X Franz Joseph
8x + 5y = 24 y= -4x what's X and what's y???!!!
What is the mad of 45.1 pls answer right now
What is a fault ? Explain the characteristics of the three types of fault.
what is the slope of the line that passes through these two points (-3,1) (3,3)simplify
How did various financial institutions revolutionize business and economics in the seventeenth and eighteenth century europe?
Factor expression: 2x^2-11x+5