echo "Enter the Principle Amount: "
read p
echo "Enter the rate of interest: "
read r
echo "Enter the number of years: "
read n
i=`expr $p \* $r \* $n`
i=`expr $i / 100`
echo "The Simple Interest is :Rs.$i"
-------------------------------------------------------------------------------------------------
->OUTPUT:
---------
Enter the Principle Amount:
5000
Enter the rate of interest:
10
Enter the number of years:
1
The Simple Interest is :Rs.500
*************************************************************************************************
0 comments:
Post a Comment