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 141 views
1 answer 179 views
1 answer 141 views
1 answer 133 views
133 views asked Sep 11, 2021 by avibootz
1 answer 185 views
1 answer 122 views
1 answer 121 views
...