From 9b8ea88441ea265ec4f86e9036c5874337ccae1d Mon Sep 17 00:00:00 2001 From: amanda almeida Date: Fri, 28 Oct 2022 15:24:33 -0300 Subject: [PATCH] =?UTF-8?q?Feat(triangleArea):=20Adiciona=20logica=20do=20?= =?UTF-8?q?algoritmo=20que=20retorna=20a=20=C3=A1rea=20de=20um=20tri=C3=A2?= =?UTF-8?q?ngulo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 02-triangleArea/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/02-triangleArea/index.js b/02-triangleArea/index.js index 7628fcd..d48befe 100644 --- a/02-triangleArea/index.js +++ b/02-triangleArea/index.js @@ -1,3 +1,4 @@ -export function triangleArea(base, height) { +export function triangleArea(base, height) { // your code here + return (base * height) / 2; } \ No newline at end of file