blob: a0e5beaf9a9d39ec9281a8064e2616c8b44ffdad (
plain)
1
2
3
4
5
6
7
8
9
|
//chapter 21 Ex 2
clc;
clear;
close;
t=(24+31+18)/365; //time from 4th feb to 18th april
p=3000; r=25/4;
sInterest=(p*r*t)/100;
printf("The simple interest is Rs. %2.2f",sInterest);
|