summaryrefslogtreecommitdiff
path: root/2510/CH18/EX18.20/Ex18_20.sce
diff options
context:
space:
mode:
Diffstat (limited to '2510/CH18/EX18.20/Ex18_20.sce')
-rwxr-xr-x2510/CH18/EX18.20/Ex18_20.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/2510/CH18/EX18.20/Ex18_20.sce b/2510/CH18/EX18.20/Ex18_20.sce
new file mode 100755
index 000000000..4ca382903
--- /dev/null
+++ b/2510/CH18/EX18.20/Ex18_20.sce
@@ -0,0 +1,11 @@
+//Variable declaration:
+//Fro example 18.20:
+V = 7335 //Volume of tank (ft^3)
+
+//Calculation:
+D = (4*V/%pi)**(1/3) //Diameter of tank (ft)
+H = D //Height of tube (ft)
+
+//Result:
+printf("The diameter of tank is : %.2f ft .",H)
+printf("The height of tube is : %.2f ft .",D)