This website requires JavaScript.
Explore
Help
Register
Sign In
SavioCarvalhoMoraes
/
challenge-algorithms-v2.0-Savio-Carvalho-Moraes
Watch
1
Star
0
Fork
0
You've already forked challenge-algorithms-v2.0-Savio-Carvalho-Moraes
forked from
M3-Academy/challenge-algorithms-v2.0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
71b6572744
challenge-algorithms-v2.0-S...
/
02-triangleArea
/
index.js
5 lines
96 B
JavaScript
Raw
Normal View
History
Unescape
Escape
feat(triangleArea): Adicionando o algoritmo que retorna a area de um triangulo.
2022-10-30 17:21:30 +00:00
export
function
triangleArea
(
base
,
height
)
{
let
area
=
(
base
*
height
)
/
2
;
return
area
;
}
Reference in New Issue
Copy Permalink