blob: d6d2f992976dad62afb9722e3f7f0068a49cce59 (
plain)
1
2
3
4
5
6
7
8
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);
|