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

clc;
clear;
close;
s=132*5/18;   //converting into m/sec
d=110+165;    //length of train + length of platform
t=d/s;
printf("The time taken is %1.1f sec",t);