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);
|