1 2 3 4 5 6 7 8 9
//chapter 25 ex 8 clc; clear; close; a=sqrt(1734/6); //given surface area=1734 and by formula surface area=6*a^2 volume=a^3; printf("The volume of cube is %d cubic cm",volume);