Computer Science, asked by dvnrituraj15057, 1 month ago

Write a program to calculate the perimeter of rectangle. in python

Answers

Answered by vimalmunndra
1

Explanation:

a=c=2 # in rectangle sides opposite to each other are equal in length.

b=d=4 # length of opposite sides.

Perimeter = 2*(a+ b)

print("Perimeter of rectangle is: ");

print(Perimeter);

Similar questions