SIMPLE INTEREST


SOURCE CODE:
echo " Enter the principle value: "
read p
echo " Enter the rate of interest:"
read r
echo " Enter the time period:"
read t
s=`expr $p \* $t \* $r / 100`
echo " The simple interest is "
echo $s

OUTPUT:
[examuser35@localhost Jebastin]$ sh si.sh
Enter the principle value:
2000
Enter the rate of interest:
4
Enter the time period:
10
The simple interest is
800
Previous
Next Post »

Still not found what you are looking for? Try again here.