write a python program to calculate area
amd perimeter of a rectangle
according to the user choice it should
print area or perimeter using 2
functions area and peri.
Attachments:
Answers
Answered by
0
Answer:
# Python3 code to find area
# and perimeter of rectangle
# Utility function
def areaRectangle(a, b):
return (a * b)
def perimeterRectangle(a, b):
return (2 * (a + b))
# Driver function
a = 5;
b = 6;
print ("Area = ", areaRectangle(a, b))
print ("Perimeter = ", perimeterRectangle(a, b))
Mark me as the brainliest.
Answered by
0
Answer:
efkjesltjkldr h
Explanation:
dt7y74t58yhu7fujg4vb 54nj7ghu78 yf74gh7u
Similar questions