How to calculate surface area of cone in JavaScript

1 Answer

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

 



answered Sep 11, 2021 by avibootz

Related questions

1 answer 141 views
1 answer 179 views
1 answer 132 views
1 answer 142 views
1 answer 134 views
134 views asked Sep 11, 2021 by avibootz
1 answer 123 views
1 answer 122 views
...