Write a shell script to calculate simple interest

 



Write a shell script to calculate simple interest



Program :-

#!/bin/bash

echo " UTSAV Gohel - 91900104011 "

echo "Enter P :-"

read P

echo "Enter R :-"

read R

echo "Enter N :-"

read N

 

product=`expr $P \* $R \* $N `

si=`expr $product / 100 `

 

 echo "Simple Interest is: $si"

Output :-