blob: 01bc89d2f83f0aee1e0ee5ef143c71fdd105456c (
plain)
1
2
3
4
5
6
7
8
9
10
|
//chapter 19 Ex 2
clc;
clear;
close;
dDown=15; dUp=5; tDown=3+(45/60); tUp=2+(30/60);
rDown=dDown/tDown;
rUp=dUp/tUp;
sCurrent=(rDown-rUp)/2;
printf("The speed of current is %d km/hr",sCurrent);
|