summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.1/25Ex1.sce
blob: c95b68f01c4f5aaef0accba7dff1fc6cdb2b0728 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Chapter 25, Ex1
clc;
clear;
close;
l=16; b=14; h=7;      //given
volume=l*b*h;
surface_area=[2*((l*b)+(b*h)+(l*h))];
//disp("cubic meter",volume,"The volume is:")
//disp("cubic centimeter",surface_area,"The surface area is:");
printf("The volume is %d cubic meter",volume);
printf("\n The surface area is %d cubic centimeter",surface_area);