summaryrefslogtreecommitdiff
path: root/1208/CH2/EX2.6/Exa6.sce
blob: 147c48fa0832acb7a00bd47f409073848516bd61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Exa6
clc;
clear;
close;
//given data is :
P=10000;//in rupees
N=3;// years
r1=4;// in % per annum for 1st year
r2=5;// in % per annum for 2nd year
r3=10;// in % per annum for 3rd year
A=P*(1+r1/100)*(1+r2/100)*(1+r3/100);
CI=A-P;
disp("Compound interest is : "+string(CI)+" Rupees.")