100-days-of-rust/Week-07/Day-43_Area-Of-A-Triangle/README.md
2023-03-23 21:14:34 -04:00

14 lines
258 B
Markdown

# Area of a Triangle
Write a function that takes the base and height of a triangle and return its area.
## Example
```text
triArea(3, 2) ➞ 3
triArea(5, 4) ➞ 10
triArea(7, 4) ➞ 14
triArea(10, 10) ➞ 50
triArea(12, 11) ➞ 66
triArea(0, 60) ➞ 0
```