In C++ write the code for a function that calculates the area ofa triangle with default arguments base = 1 and height = 1. Test itwith three function calls: one with default arguments, another withboth values equal to 2 and the last having one value given to beequal to 3. Please attach images of output.
Expert Answer
An answer will be send to you shortly. . . . .