/* triangle function -- computes the area of a triangle * Parameters width - width of the triangle height - height of the triangle Returns area of triangle ********************************************************/ float triangle(float width, float height) { float area; area = width * height / 2.0; return(area); }