blob: 09f91ece3bca0fb8068575d78732d39272a37cfc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Chapter 4
//Example 4_2
//Page 74
clear;clc;
p=200000;
s=10000;
n=20;
r=0.08;
q=(p-s)*r/((1+r)^n-1);
printf("Annual payment for sinking fund = Rs. %.0f \n\n", q);
|