Create a function called area that calculates the area of atriangle. The function requires 2 parameters/arguments. Thevariables passed to the function are called base and height. Tocalculate the area multiply height times the base. In addition tothe function add your code to both prompt for the values of areaand height and base and then call the area function todisplay/print the area.
byC programing
Expert Answer
An answer will be send to you shortly. . . . .