summaryrefslogtreecommitdiff
path: root/1553/CH18/EX18.4/18Ex4.sce
blob: 16840c2b2ef01950d7037fceb0db8425f892edf7 (plain)
1
2
3
4
5
6
7
8
9
//chapter 18 Ex 4

clc;
clear;
close;
s_t=68; s_m=8; d_t=150;
s_relative=(s_t-s_m)*5/18;
t=d_t/s_relative;
printf("The train will pass the man in %d sec",t);