Write a program that calculates areas of rectangle, triangle and square with the following conditions. For each of these shapes you need to create classes, i.e. you should have three classes rectangle, triangle and square. Objects of these classes should be possible to initialize using constructor. If one is not passing arguments to the constructor during the object initialization, default values of the object sides (height, width, side) should be 0. Friend function should be able to calculate and print area of the shapes, if no shape is initialized using the non-zero values, it should not print anything for that particular shape.