summaryrefslogtreecommitdiff
path: root/1553/CH6/EX6.6/6Ex6.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH6/EX6.6/6Ex6.sce')
-rw-r--r--1553/CH6/EX6.6/6Ex6.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH6/EX6.6/6Ex6.sce b/1553/CH6/EX6.6/6Ex6.sce
new file mode 100644
index 000000000..396672a7d
--- /dev/null
+++ b/1553/CH6/EX6.6/6Ex6.sce
@@ -0,0 +1,9 @@
+//chapter 6 Ex 6
+
+clc;
+clear;
+close;
+persons=9; extra=8;
+avgexp=(12*(persons-1)+extra)/(persons-1);
+total=9*avgexp;
+mprintf("The total money spent was Rs.%d",total);