summaryrefslogtreecommitdiff
path: root/1208/CH2/EX2.2
diff options
context:
space:
mode:
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.")
+
+
+
+