summaryrefslogtreecommitdiff
path: root/1553/CH19/EX19.1/19Ex1.sce
blob: 19da613c2d3509d7a11a57322e9112987df05703 (plain)
1
2
3
4
5
6
7
8
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);