14 lines
258 B
Markdown
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
|
|
```
|