How to calculate the surface area of cuboid in TypeScript

1 Answer

0 votes
const _length = 7;
const width = 3;
const height = 4;
          
const surfacearea = 2 * (_length * width + width * height + height * _length);
          
console.log("Surface Area of Cuboid is = " + surfacearea);
  
  
 
 
   
/*
run:
   
"Surface Area of Cuboid is = 122" 
   
*/

 



answered Jul 19, 2022 by avibootz
...