diff options
Diffstat (limited to '1553/CH10/EX10.26/10Ex26.sce')
-rw-r--r-- | 1553/CH10/EX10.26/10Ex26.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/1553/CH10/EX10.26/10Ex26.sce b/1553/CH10/EX10.26/10Ex26.sce new file mode 100644 index 000000000..46ddb1be0 --- /dev/null +++ b/1553/CH10/EX10.26/10Ex26.sce @@ -0,0 +1,10 @@ +//chapter 10 Ex 26
+
+clc;
+clear;
+close;
+decRate=10/100;
+presentValue=162000; years=2;
+valueAfter=presentValue*(1-decRate)^years;
+valueBefore=presentValue/(1-decRate)^years;
+mprintf("The value after 2 years will be Rs.%d \n and before 2 years was Rs.%d",valueAfter,valueBefore);
|