summaryrefslogtreecommitdiff
path: root/2471/CH3/EX3.2/Ex3_2.sce
blob: 490faae4f24800fad0329ef28bb8e3c2def4cd19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clear ;
clc;
// Example 3.2
printf('Example 3.2\n\n');
printf('Page No. 58\n\n');

// given
P = 10000;// Principal Amount in Pound
i = 0.15;// Interest Rate
n = 4;//years
Tc = P*(1+i)^n;
printf('The total repayment after adding compond interest is %.0f Pound\n',Tc)