summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.7/25Ex7.sce
blob: e75d26196d48eef0a5d9c8860c04791db779cf08 (plain)
1
2
3
4
5
6
7
8
//Chapter 25 Ex 7
clc;
clear;
close;
a=(6*sqrt(3))/sqrt(3);...//since diagonal of a cube=sqrt(3)*side;
Volume=a^3;
Sur_area=6*a^2;
printf("The volume of cube is %d cubic meter \n Surface area is %d centimeter square.",Volume,Sur_area);