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

clc;
clear;
close;
sTrain=50; t=9; lTrain=280;
sRelative=(lTrain/t)/(5/18);
sGoods=sRelative-sTrain;
printf("The speed of goods train is %d km/hr",sGoods);