feat(triangleArea): Adicionando o algoritmo que retorna a area de um triangulo. #2

Merged
SavioCarvalhoMoraes merged 1 commits from feature/triangleArea into development 2022-10-30 17:28:49 +00:00
Showing only changes of commit 71b6572744 - Show all commits

View File

@ -1,3 +1,4 @@
export function triangleArea(base, height) {
// your code here
}
export function triangleArea(base, height) {
let area = (base * height) / 2;
return area;
}