write a program in Python to print area and perimeter of square
plzz tell me fast
Answers
Answered by
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
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
Computer Science,
1 month ago
Math,
1 month ago
Political Science,
2 months ago
Physics,
2 months ago
Biology,
8 months ago
Math,
8 months ago