summaryrefslogtreecommitdiff
path: root/1553/CH6/EX6.9/6Ex9.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH6/EX6.9/6Ex9.sce')
-rw-r--r--1553/CH6/EX6.9/6Ex9.sce8
1 files changed, 8 insertions, 0 deletions
diff --git a/1553/CH6/EX6.9/6Ex9.sce b/1553/CH6/EX6.9/6Ex9.sce
new file mode 100644
index 000000000..c915ca68b
--- /dev/null
+++ b/1553/CH6/EX6.9/6Ex9.sce
@@ -0,0 +1,8 @@
+//chapter 6 Ex 9
+
+clc;
+clear;
+close;
+total=11; avg11=60; avg6first=58; avg6last=63;
+num6=(((avg6first*6)+(avg6last*6))-avg11*total);
+mprintf("The 6th number is %d",num6);