blob: 0b91e50d27705eaf21e738962b4cf31f6290873a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Exa3a
clc;
clear;
close;
//given data :
Vo=1000;//in Rs
r=12;//in % per annum
i=r/100;
t=3;//in years
//interest is calculated in yearly basis
n=t;
//formula Vn=Vo*(1+i)^n
Vn=Vo*(1+i)^n;
disp(Vn," The compound value (in Rs.) : ")
//The ans in the book is wrong
disp("Note : The ans in the book is wrong")
|