Checkpoint 19.7.1.
What is the value of
perimeter
that is calculated inside triangle_area
?
triangle_area
triangle_area
calls distance
three times. After each time distance
runs, it returns a value that gets used by triangle_area
to set a, b, or cdistance
calls x1, x2, y1, and y2 does not always match the names used for those values in triangle_area
. For example, when we call distance(x2, y2, x3, y3)
in triangle_area
, distance will be given the value that triangle_area
is calling x2 as its first parameter. distance
calls its first parameter x1.triangle_area
, use the value to answer the question below the code sample.perimeter
that is calculated inside triangle_area
?