summaryrefslogtreecommitdiff
path: root/1553/CH32/EX32.2/32Ex2.sce
diff options
context:
space:
mode:
Diffstat (limited to '1553/CH32/EX32.2/32Ex2.sce')
-rw-r--r--1553/CH32/EX32.2/32Ex2.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/1553/CH32/EX32.2/32Ex2.sce b/1553/CH32/EX32.2/32Ex2.sce
new file mode 100644
index 000000000..d6d2f9929
--- /dev/null
+++ b/1553/CH32/EX32.2/32Ex2.sce
@@ -0,0 +1,9 @@
+//Chapter 32 Ex 2
+
+clc;
+close;
+clear;
+TD=540; t=9/12; r=12;
+amt=(TD*(100+(r*t)))/(r*t); //derived from formula true discount
+PW=amt-TD;
+mprintf("The amount of the bill and its present worth are Rs.%d and Rs.%d",amt,PW);