summaryrefslogtreecommitdiff
path: root/1553/CH25/EX25.14/25Ex14.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH25/EX25.14/25Ex14.sce')
-rw-r--r--1553/CH25/EX25.14/25Ex14.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH25/EX25.14/25Ex14.sce b/1553/CH25/EX25.14/25Ex14.sce
new file mode 100644
index 000000000..b6eeef7af
--- /dev/null
+++ b/1553/CH25/EX25.14/25Ex14.sce
@@ -0,0 +1,11 @@
+//chapter 25 Ex 14
+clc;
+clear;
+close;
+d=7; //given diameter
+r=d/2;
+h=40; //given height
+vol=(22/7)*r^2*h;
+curved_area=2*(22/7)*r*h;
+Total_area=(2*(22/7)*r*h)+(2*(22/7)*r^2);
+printf("Volume= %d cubic cm\n Curved Surface area= %d square cm\n Total surface area= %d square cm",vol,curved_area,Total_area);