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