summaryrefslogtreecommitdiff
path: root/1553/CH22/EX22.2/22Ex2.sce
blob: ee315c079ce421b20edbdeb39650c3e61824d7ed (plain)
1
2
3
4
5
6
7
8
9
//chapter 22 Ex 2

clc;
clear;
close;
p=8000; n=2; r=15;
amount=p*((1+r/100)^n)*((1+(1/3)*r/100));
CI=amount-p;
printf("The Compound Interest is Rs. %3.0f",CI);