summaryrefslogtreecommitdiff
path: root/1553/CH19/EX19.5/19Ex5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH19/EX19.5/19Ex5.sce')
-rw-r--r--1553/CH19/EX19.5/19Ex5.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/1553/CH19/EX19.5/19Ex5.sce b/1553/CH19/EX19.5/19Ex5.sce
new file mode 100644
index 000000000..5d5423921
--- /dev/null
+++ b/1553/CH19/EX19.5/19Ex5.sce
@@ -0,0 +1,11 @@
+//chapter 19 Ex 5
+
+clc;
+clear;
+close;
+sStill=7.5; sRiver=1.5; tTotal=50/60;
+sDown=sStill+sRiver;
+sUp=sStill-sRiver;
+
+dist=tTotal/(1/sDown+1/sUp);
+printf("The required distance is %d km",dist);