forked from M3-Academy/challenge-algorithms-v2.0
feat: cria um algoritmo que retorna a area de um triângulo.
This commit is contained in:
parent
ada1b58282
commit
2ada1deee6
@ -1,3 +1,4 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
return ((base * height) / 2);
|
||||
}
|
Loading…
Reference in New Issue
Block a user