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