Computer Science, asked by rajdevverma1, 2 months ago

write a program in Python to print area and perimeter of square




plzz tell me fast​

Answers

Answered by Abhinav014183
44

Answer:

Python Code:

s=int(input("Side : "))

area=s*s.

perimeter=4*s.

print("Area of Rectangle : ",area)

print("Perimeter of Rectangle : ",perimeter)


BrainlyIAS: Nice :-)
Answered by allysia
93

Answer:

A python code goes like:

_____________________________

def anp(n):

   print( "The area will be", a**2,"and the perimeter will be", a*4,".")

_____________________________

Explanation:

anp is a function that return area and perimeter with some statements.You need to call it for a square with "n" side length.

Similar questions