summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.2/Ex14_2.sce
blob: 023d2d15d3556a17dbf247336581d24a940dca44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc

// given data

P=10.0 // in lakh rs
i=12.25 // interest rate in %
F=20 // final amount in lakh rs

n=log(F/P)/log(1+i/100.0) // time in years

printf("The number of years is %.2f years",n)