How to calculate the volume of cube in TypeScript

1 Answer

0 votes
const a = 9;  
  
const cube_volume = a * a * a; 
     
console.log("Cube volume = " + cube_volume); 
 
 
   
     
     
/*
run:
     
"Cube volume = 729" 
     
*/

 



answered Jul 22, 2022 by avibootz

Related questions

1 answer 156 views
1 answer 158 views
1 answer 116 views
1 answer 121 views
1 answer 121 views
1 answer 123 views
1 answer 136 views
...