feat(triangleArea):criado algoritimo

This commit is contained in:
Tiago Trevisani 2022-11-02 15:48:43 -04:00
parent 696061d9ba
commit cc623cf763
2 changed files with 2 additions and 6 deletions

View File

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

View File

@ -1,9 +1,4 @@
export function sum(values) {
var arr = [1];
var arr = [1, 2];
var arr = [1, 2, 3];
var arr = [1, 2, 3, 4,];
var arr = [1, 2, 3, 4, 5,]
var sum = 0;
for(var i = 0; i < values.length; i++) {