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 86 views
1 answer 118 views
1 answer 114 views
1 answer 160 views
1 answer 130 views
1 answer 123 views
...