Computer Science, asked by shivani8109, 9 months ago

Write a python program to find the area and perimeter of a rectangle

Answers

Answered by riyassareena1975
25

Answer:

by using the length and breadth, this program find the perimeter of a rectangle.Tip : the math formula to calculate the perimeter of a rectangle: perimeter = 2*

(Length+width).

Answered by Anonymous
501

♣ Qᴜᴇꜱᴛɪᴏɴ :

Write a program to input length and breadth of a rectangle .Calculate and print it's area and perimeter (Phyton chapter)​

★═════════════════★

♣ ᴄᴏɴᴄᴇᴘᴛ :

First we need to take input from user asking his/her for lenght and then breadth. Then we need to address how to calculate area and perimeter. It's done, Time to print !!!!

★═════════════════★

♣ ʀᴇQᴜɪʀᴇᴅ ᴄᴏᴅᴇ :

l =int(input("Length : "))

b =int(input("Breadth : "))

area = l*b

perimeter = 2*(l+b)

print("Area of Rectangle : ",area)

print("Perimeter of Rectangle : ",perimeter)

Attachments:
Similar questions