summaryrefslogtreecommitdiff
path: root/3434/CH14/EX14.1/Ex14_1.sce
blob: 372812be520f87eca1ce2d2e85ea96781b100a14 (plain)
1
2
3
4
5
6
7
8
9
clc
// given data
P=2000 // in rs
i=12 // interest rate in %
n=6 // time in years

F=P*(1+i/100.0)**n // Future value of investment

printf("The amount will be Rs %.0f",F)