blob: b1ab2c521ecacde87e2fe54b9917c09c3be3f9e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//Exa1
clc;
clear;
close;
//given data :
Vo=500;//in Rs
r=5;//in % per annum
i=r/100;
n=3;//in years
//formula Vn=Vo*(1+i)^n
V3=Vo*(1+i)^n;
disp(V3,"future value after three years : ")
CI=V3-Vo;
disp(CI,"compound interest is : ")
|