1 2 3 4 5 6 7 8 9 10
//chapter 18 Ex 8 clc; clear; close; lTrain=100; t=6; sMan=5; sRelative=lTrain/(t*5/18); sTrain=sRelative-sMan; printf("The speed of train is %d km/hr",sTrain);