diff options
Diffstat (limited to '1553/CH17/EX17.7/17Ex7.sce')
-rw-r--r-- | 1553/CH17/EX17.7/17Ex7.sce | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/1553/CH17/EX17.7/17Ex7.sce b/1553/CH17/EX17.7/17Ex7.sce new file mode 100644 index 000000000..9548f04ef --- /dev/null +++ b/1553/CH17/EX17.7/17Ex7.sce @@ -0,0 +1,7 @@ +//chapter 17 Example 7
+clc;
+clear;
+close;
+s1=200;s2=400;s3=600;s4=800;
+avgspeed=4/(1/s1+1/s2+1/s3+1/s4);
+printf("The average speed is %3.0f km/hr",avgspeed);
|