summaryrefslogtreecommitdiff
path: root/1553/CH17/EX17.10/17Ex10.sce
blob: 39cc78e5b3d0f7545359f93f313365b646122503 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//chapter 17 Ex 10

clc;
clear;
close;
s1=65; s2=35;
d=390;
t=(390+s2)/(s1+s2);
t_hr=round(t);
t_min=(modulo(t,t_hr))*60;
t1=10;
t2_hr=t1+t_hr;
printf("They meet at %d:%d hour",t2_hr,t_min);