diff options
Diffstat (limited to '1553/CH25/EX25.1/25Ex1.sce')
-rw-r--r-- | 1553/CH25/EX25.1/25Ex1.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH25/EX25.1/25Ex1.sce b/1553/CH25/EX25.1/25Ex1.sce new file mode 100644 index 000000000..c95b68f01 --- /dev/null +++ b/1553/CH25/EX25.1/25Ex1.sce @@ -0,0 +1,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);
|