Write a shell script to find the simple interest.

cho -e “Enter the Principle of amount::\c”

read p

echo -e “Enter the rate of interest::\c”

read r

echo -e “Enter the number of month::\c”

read n

a=expr $p \* $r \* $n

si=expr $a/100 | bc

echo Simple Interest ::$si

 

OUTPUT::

 

Enter the Principle of amount::5000

Enter the rate of interest::5

Enter the number of month::6

Simple Interest ::1500

 

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.