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 143 views
1 answer 182 views
1 answer 136 views
1 answer 146 views
1 answer 137 views
137 views asked Sep 11, 2021 by avibootz
1 answer 124 views
1 answer 126 views
...