summaryrefslogtreecommitdiff
path: root/1553/CH22/EX22.5/22Ex5.sce
blob: 564946fc6e4a0b0ef0da9dfc0ba8d8323be5ef6a (plain)
1
2
3
4
5
6
7
8
9
10
11
//chapter 22 Ex 5

clc;
clear;
close;
rate=5/100;
t=3; SIAmt=1200; 
p=SIAmt/(t*rate);
Amt=p*(1+rate)^t;
CI=Amt-p;
mprintf("The compound interest is Rs.%d",CI);