blob: 4af5b8fedb2ed24cfcbb729d007bbec1e0993036 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Chapter 33 Ex 4
clc;
clear;
close;
BD=120; TD=110; //given
t=8/12; //converted in year
Sum=((BD*TD)/(BD-TD));
rate= ((100*BD)/(Sum*t));
mprintf("The sum is Rs.%d \n The rate is %.2f percent",Sum,rate);
|