This website works better with JavaScript
Inicio
Explorar
Axuda
Rexistro
Iniciar sesión
Ethosa
/
Learn
réplica de
https://github.com/Ethosa/Learn
Seguir
1
Destacar
0
Fork
0
Ficheiros
Incidencias
0
Wiki
Árbore:
f085424687
Ramas
Etiquetas
main
Learn
/
Languages
/
js-rush
/
task2
Ethosa
f085424687
add `js-rush` folder
%!s(int64=3) %!d(string=hai) anos
..
main.js
f085424687
add `js-rush` folder
%!s(int64=3) %!d(string=hai) anos
readme.md
f085424687
add `js-rush` folder
%!s(int64=3) %!d(string=hai) anos
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.