This website works better with JavaScript
Trang chủ
Khám phá
Trợ giúp
Đăng ký
Đăng nhập
Ethosa
/
Learn
mirror of
https://github.com/Ethosa/Learn
Xem
1
Star
0
Fork
0
Các tập tin
Các vấn đề
0
Wiki
Tree:
f085424687
Branches
Tags
main
Learn
/
Languages
/
js-rush
/
task2
Ethosa
f085424687
add `js-rush` folder
3 năm trước cách đây
..
main.js
f085424687
add `js-rush` folder
3 năm trước cách đây
readme.md
f085424687
add `js-rush` folder
3 năm trước cách đây
readme.md
Area of a Triangle
Write a function that takes the base and height of a triangle and return its area.
Examples
triArea(3, 2) ➞ 3 triArea(7, 4) ➞ 14 triArea(10, 10) ➞ 50
Notes
The area of a triangle is: (base * height) / 2
Don't forget to return the result.