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 193 views
1 answer 226 views
1 answer 221 views
1 answer 273 views
1 answer 233 views
1 answer 229 views
...