main.m167 chars6 linesThis function takes in two input arguments, the base and height of the triangle, and returns the area of the triangle using the formula 0.5 * base * height. The area variable is used to store the computed area of the triangle and is returned as the output of the function.
gistlibby LogSnag