summaryrefslogtreecommitdiff
path: root/1553/CH21/EX21.2/21Ex2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH21/EX21.2/21Ex2.sce')
-rw-r--r--1553/CH21/EX21.2/21Ex2.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH21/EX21.2/21Ex2.sce b/1553/CH21/EX21.2/21Ex2.sce
new file mode 100644
index 000000000..a0e5beaf9
--- /dev/null
+++ b/1553/CH21/EX21.2/21Ex2.sce
@@ -0,0 +1,9 @@
+//chapter 21 Ex 2
+
+clc;
+clear;
+close;
+t=(24+31+18)/365; //time from 4th feb to 18th april
+p=3000; r=25/4;
+sInterest=(p*r*t)/100;
+printf("The simple interest is Rs. %2.2f",sInterest);