blob: 7aaa30037589ae02816beb0bb1ca71562921cdf3 (
plain)
1
2
3
4
5
6
7
8
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);
|