Algorithm design
1. First, we construct a structure with name square and initialize integer members length(l),
breadth(b), perimeter(p) and area(a).
2. Also, we will create a structure variable s.
3. Now we will ask the user to input the length and breadth of the rectangle/square by the use
of scanf(“%d %d”, &l &b).
4. We will define the value of perimeter and area by using their respective formula i.e.
s.p=2*(s.l+s.b) and s.a=(l*b)
5. Using printf function will print the inputs and perimeter and area as outputs