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