summaryrefslogtreecommitdiff
path: root/1553/CH19/EX19.1/19Ex1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH19/EX19.1/19Ex1.sce')
-rw-r--r--1553/CH19/EX19.1/19Ex1.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH19/EX19.1/19Ex1.sce b/1553/CH19/EX19.1/19Ex1.sce
new file mode 100644
index 000000000..19da613c2
--- /dev/null
+++ b/1553/CH19/EX19.1/19Ex1.sce
@@ -0,0 +1,9 @@
+//chapter 19 Ex 1
+
+clc;
+clear;
+close;
+sUpstream=7; sDownstream=10;
+rStill=(sUpstream+sDownstream)/2;
+rCurrent=(sDownstream-sUpstream)/2;
+printf("The rate of man in still water is %1.1f km/hr and rate of current is %1.1f km/hr",rStill,rCurrent);