diff options
Diffstat (limited to '1553/CH18/EX18.5/18Ex5.sce')
-rw-r--r-- | 1553/CH18/EX18.5/18Ex5.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH18/EX18.5/18Ex5.sce b/1553/CH18/EX18.5/18Ex5.sce new file mode 100644 index 000000000..fc2e7d74b --- /dev/null +++ b/1553/CH18/EX18.5/18Ex5.sce @@ -0,0 +1,9 @@ +//chapter 18 Ex 5
+
+clc;
+clear;
+close;
+sTrain=59; lTrain=220; sMan=7;
+sRelative=(sTrain+sMan)*5/18; //addition of speed since opposite direction
+t=lTrain/sRelative;
+printf("The time taken by train to pass the man is %d sec",t);
|