diff options
Diffstat (limited to '1553/CH18/EX18.4/18Ex4.sce')
-rw-r--r-- | 1553/CH18/EX18.4/18Ex4.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH18/EX18.4/18Ex4.sce b/1553/CH18/EX18.4/18Ex4.sce new file mode 100644 index 000000000..16840c2b2 --- /dev/null +++ b/1553/CH18/EX18.4/18Ex4.sce @@ -0,0 +1,9 @@ +//chapter 18 Ex 4
+
+clc;
+clear;
+close;
+s_t=68; s_m=8; d_t=150;
+s_relative=(s_t-s_m)*5/18;
+t=d_t/s_relative;
+printf("The train will pass the man in %d sec",t);
|