From 2ada1deee60fc59a412ad2eba4e3f04ebc586cc6 Mon Sep 17 00:00:00 2001 From: Emmanuel Vitor Date: Mon, 31 Oct 2022 11:40:29 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20cria=20um=20algoritmo=20que=20retorna?= =?UTF-8?q?=20a=20area=20de=20um=20tri=C3=A2ngulo.?= 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..26d9e26 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 -- 2.34.1