How to calculate surface area of cone in TypeScript

1 Answer

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

 



answered Jul 21, 2022 by avibootz

Related questions

1 answer 233 views
1 answer 286 views
1 answer 240 views
1 answer 229 views
229 views asked Sep 11, 2021 by avibootz
1 answer 290 views
1 answer 217 views
1 answer 207 views
...