diff options
Diffstat (limited to '1553/CH17/EX17.12/17Ex12.sce')
-rw-r--r-- | 1553/CH17/EX17.12/17Ex12.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/1553/CH17/EX17.12/17Ex12.sce b/1553/CH17/EX17.12/17Ex12.sce new file mode 100644 index 000000000..a6e2af8dc --- /dev/null +++ b/1553/CH17/EX17.12/17Ex12.sce @@ -0,0 +1,13 @@ +//chapter 17 Ex 12
+
+clc;
+clear;
+close;
+d=100/1000; //converting meter to km
+s_t=8;s_p=10;
+s_relative=s_p-s_t;
+
+t_p=d/s_relative;
+d_t=s_t*t_p;
+dist_theif=d_t*1000;
+printf("The distance covered by theif is %d meter",dist_theif);
|