Question: Write a function that computes the area of a triangle given its base and height. The formula for an area of a triangle is: AREA
Write a function that computes the area of a triangle given its base and height.
The formula for an area of a triangle is:
AREA BASE HEIGHT
For example, if the base was and the height was the area would be trianglearea ; # should print
Your function must be named trianglearea
Note: Be sure to include comments for all functions that you use or create.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
