forked from M3-Academy/challenge-algorithms-v2.0
feat(triangleArea):criado algoritimo
This commit is contained in:
parent
696061d9ba
commit
cc623cf763
@ -1,3 +1,4 @@
|
||||
export function triangleArea(base, height) {
|
||||
// your code here
|
||||
|
||||
return(base * height) /2;
|
||||
}
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user