How to calculate the surface area of cuboid in Node.js

1 Answer

0 votes
const length = 8;
const width = 5;
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 = 184
   
*/

 



answered Jul 19, 2022 by avibootz
...