summaryrefslogtreecommitdiff
path: root/1553/CH22/EX22.12/22Ex12.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH22/EX22.12/22Ex12.sce')
-rw-r--r--1553/CH22/EX22.12/22Ex12.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH22/EX22.12/22Ex12.sce b/1553/CH22/EX22.12/22Ex12.sce
new file mode 100644
index 000000000..e79861ae6
--- /dev/null
+++ b/1553/CH22/EX22.12/22Ex12.sce
@@ -0,0 +1,10 @@
+//chapter 22 Ex 12
+
+clc;
+clear;
+close;
+amt1=7350; n1=2; amt2=8575; n2=3;
+rate=((amt2-amt1)/(n2-n1)/amt1)*100;
+//let sum be Rs.x
+Sum=amt1/(1+(rate/100))^n1;
+mprintf("The sum is Rs.%.0f",Sum);