Liliana797979

triangle area - fundamentals

May 28th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.      
  2. function triangleArea(a, b, c) {
  3.     let s = (a + b + c) / 2
  4.     let result = Math.sqrt(s * (s - a) * (s - b) * (s - c))
  5.  
  6.     console.log(result);
Advertisement
Add Comment
Please, Sign In to add comment