To find the perimeter of a square, just add up all the lengths of the sides.
The area of a square: To find the area of a square, multiply the lengths of two sides together. Another way to say this is to say “square the length of a side.
In this example, I’ll show how to calculate area and perimeter of rectangle in C#.
s=int(input("Side : "))
print("Area of Rectangle : ",area)
print("Perimeter of Rectangle : ",perimeter)