summaryrefslogtreecommitdiff
path: root/1208/CH2/EX2.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1208/CH2/EX2.2
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '1208/CH2/EX2.2')
-rwxr-xr-x1208/CH2/EX2.2/Exa2.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/1208/CH2/EX2.2/Exa2.sce b/1208/CH2/EX2.2/Exa2.sce
new file mode 100755
index 000000000..ef236d996
--- /dev/null
+++ b/1208/CH2/EX2.2/Exa2.sce
@@ -0,0 +1,26 @@
+//Exa2
+clc;
+clear;
+close;
+//For first year
+P1=500;//in rupees
+n=3;//in years
+r=10;//% per annum
+T=1//in year
+I1st=(P1*r*T)/100;
+A1=P1+I1st;
+//For second year
+P2=A1;
+I2nd=(P2*r*T)/100;
+A2=P2+I2nd;
+//For third year
+P3=A2;
+I3rd=(P3*r*T)/100;
+A3=P3+I3rd;
+//compound interest or 3 years
+CI=A3-P1;
+disp("Compound interest is : "+string(CI)+" Rupees.")
+
+
+
+