Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 387 Bytes

File metadata and controls

20 lines (13 loc) · 387 Bytes

Area of a Triangle

Write a function that takes the base and height of a triangle and return its area.


Examples:

triangleArea(3, 2) ➞ 3
triangleArea(7, 4) ➞ 14
triangleArea(10, 10) ➞ 50

Solution: