blob: 1769fc98defea1212ffa02ab499d17ec9b3b2b0d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//chapter 21 Ex 4
clc;
clear;
close;
Sum=800; amount=920; t=3; rIncrease=3;
sInterest=amount-Sum;
rate=(sInterest*100)/(Sum*t);
rNew=(rate+rIncrease);
sInterestNew=(Sum*rNew*t)/100;
aNew=Sum+sInterestNew;
printf("The new amount is Rs. %d",aNew);
|