Write a program to input side of a square and find the area and perimeter of a square.
def area_per(x):
print('The area of the square is {}'.format(x**2))
print('The perimeter of the square is {}'.format(4*x))
area_per(5)
The area of the square is 25
The perimeter of the square is 20
Comments
Leave a comment