The code will ask the user for the length 1 and length 2 of a square or a rectangle. If the lengths are same, it says it is a square and gives the area, otherwise it is a Rectangle and gives the area.
Rohit Kumar on kind request of Supriya Aggarwal