Write a program to read the length and width of a shape, determine whether it is
square or Rectangle, and then calculate the area of shape according to its type.
1. void read(), read width and length.
2. string shapeType(double w, double L)
3. double area(double w, double L)