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

clc;
clear;
close;
p=10000; n=4;   //since half yearly, hence 2 years=4 half years
 r=2;
amount=p*((1+r/100)^n);
CI=amount-p;
printf("The Compound Interest is Rs. %3.2f",CI);