(Python)
Write a program with variables to find the area and perimeter of a rectangle of length 12 cm and breadth 8 cm.
PLZ DON'T SPAM✌
Answers
Answered by
2
Program for Area and Perimeter of the rectangle
Explanation:
The following are the program in the Python Programming Language.
length = 12
breadth = 8
area = length*breadth
perimeter = 2*(length+breadth)
print('Area: ',area)
print('Perimeter: ',perimeter)
The following are the description of the program.
- Firstly, we set two variables 'length' and 'breadth' and initialize the integer type values 12 and 8 in it.
- Then, set the variable 'area' that stores the multiplication of the variables 'length' and 'breadth'.
- Then, set the variable 'perimeter' that stores the addition of 'length' and 'breadth' then, multiplication of 2.
- Finally, print the variables 'area' and 'perimeter' with message.
Learn More:
https://brainly.in/question/8473294
Similar questions