blob: d99380f216f7f96add883d00bab17f33ef86830f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Exa2
clc;
clear;
close;
//given data is :
P=5000;//in rupees
n=3/2;//in years
r=10/2;//% per annum paid half yearly
m=2;//freq of compounding
A=P*(1+r/100)^(m*n);
CI=A-P;//in rupees
disp("Compound interest is : "+string(CI)+" Rupees.")
|