blob: 11a0bf7291436b9ad4c8d6a9a1e35ac1836afb7a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Exa3_8
clc;
clear;
close;
//given data is :
A1=8500;//in rupees
G=-500;//in rupees
n=10;//in years
i=15;//% per annum
A=A1+G*(((1+i/100)^n-(i/100)*n-1)/((i/100)*(1+i/100)^n-(i/100)));
F=A*(((1+i/100)^n-1)/(i/100));
disp("At the end of 10th year, the compound amountr of all his payments will be : "+string(F)+" Rupees.");
|