How to calculate the volume of cuboid in TypeScript

1 Answer

0 votes
const _length = 7;
const width = 4;
const height = 5;
          
const volume = height * width * _length;
          
console.log("Volume of Cuboid = " + volume);
   
   
   
    
/*
run:
    
"Volume of Cuboid = 140" 
    
*/

 



answered Jul 19, 2022 by avibootz

Related questions

1 answer 145 views
1 answer 120 views
1 answer 150 views
1 answer 112 views
112 views asked Sep 10, 2021 by avibootz
1 answer 153 views
1 answer 273 views
...