summaryrefslogtreecommitdiff
path: root/1553/CH17/EX17.9/17Ex9.sce
blob: 9e583e5dfd6b387fe4bde2dc223e47e7b524d26a (plain)
1
2
3
4
5
6
7
8
9
//chapter 17 Ex 9

clc;
clear;
close;
s1=5;s2=6;t1=7;t2=5;
difference=(t1+t2)/60;   //converting minutes into hours
dist=difference/(1/s1-1/s2);
printf("The required distance is %1.0f km",dist);