forked from M3-Academy/challenge-algorithms-v2.0
feat: 02-triangleArea
This commit is contained in:
parent
e251fd23fc
commit
7f6f041de4
@ -1,3 +1,5 @@
|
|||||||
export function triangleArea(base, height) {
|
export function triangleArea(base, height) {
|
||||||
// your code here
|
// your code here
|
||||||
|
const triangleArea = (base*height)/2;
|
||||||
|
return triangleArea;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user