summaryrefslogtreecommitdiff
path: root/1553/CH33/EX33.7/33Ex7.sce
blob: 7e0bce7e1fd52e13a58f4ab64178d465e791678f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Chapter 31 Ex7
clc;
clear;
close;
deduced=10/100;
//let amount be Rs.100
amt=100;
deducedAmt=amt*(deduced);
moneyReceived=amt-deducedAmt;
t=10/12; //converting due period in years
rate=(amt*deducedAmt)/(moneyReceived*t);
mprintf("The rate percent is %.2f percent",rate);