diff options
Diffstat (limited to '1553/CH10/EX10.25/10Ex25.sce')
-rw-r--r-- | 1553/CH10/EX10.25/10Ex25.sce | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH10/EX10.25/10Ex25.sce b/1553/CH10/EX10.25/10Ex25.sce new file mode 100644 index 000000000..7aaa30037 --- /dev/null +++ b/1553/CH10/EX10.25/10Ex25.sce @@ -0,0 +1,9 @@ +//chapter 10 Ex 25
+
+clc;
+clear;
+close;
+pop=176400; rate=5/100; years=2;
+popafter=pop*(1+rate)^years;
+popbefore=pop/((1+rate)^years);
+mprintf("The population 2 years after is %d \n and 2 years before was %d",popafter,popbefore);
|