From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1208/CH9/EX9.2/Exa2.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 1208/CH9/EX9.2/Exa2.sce (limited to '1208/CH9/EX9.2/Exa2.sce') diff --git a/1208/CH9/EX9.2/Exa2.sce b/1208/CH9/EX9.2/Exa2.sce new file mode 100755 index 000000000..ef236d996 --- /dev/null +++ b/1208/CH9/EX9.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.") + + + + -- cgit