summaryrefslogtreecommitdiff
path: root/1208/CH2/EX2.9/Exa9.sce
blob: ac118d8079ccd227d45b1ecb34ea2f2c0357955a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//Exa9
clc;
clear;
close;
//given data is :
r=5;//% per annum
n=2;//in years
//let amount=P
//CI=P(1+r/100)^n-P;
//SI=(P*r*n)/100;
//CI-SI=15 Rupees;given
disp("solving eqns for CI and SI, we get : ")
disp("CI=0.1025*P");
disp("SI=0.10*P");
P=15/(0.1025-0.10);//using CI-SI
disp("Principal amount is : "+string(P)+" Rupees.")