Computer Science, asked by helpinghand9486, 8 months ago

A square has a base of 11cm. Write a python programe to calculate it's perimeter.
Use variable 'x' to denote the side.​

Answers

Answered by IshitaAgarwal05
2

Answer:

x = int(input("Please enter the side of the square."))

print("The side of the square = ", x)

P = 4*x

print("The perimeter of the square = ". P)

A = x**2

print("The area of the square = ", A)

Here, when you process the program and ask it for output, It will automatically ask you to input the value of the side of the square, where you can put the value 11.

Hope this helps.....

Similar questions