How to calculate surface area of cone in Node.js

1 Answer

0 votes
const r = 7;
const h = 18;
  
const SurfaceArea = Math.PI * r * (r + Math.sqrt((h * h) + (r * r)));
          
console.log("Surface Area of Cone = " + SurfaceArea);
  
  
  
     
/*
run:
     
Surface Area of Cone = 578.6576647652215
     
*/

 



answered Jul 21, 2022 by avibootz

Related questions

1 answer 100 views
1 answer 128 views
1 answer 123 views
1 answer 168 views
1 answer 141 views
1 answer 131 views
...