Shell Script to Calculate Gross Salary in Bash or Shell Script. [ refixed coder ]

Calculate Gross Salary. DA is 80% of the basic salary. And HRA is 30% of the basic salary.

 [ -by the refixed coder ]

CODE:

echo "Calculate Gross Salary Of An Employee"
echo -n "Enter your Salary: "
read salary
da=`echo $salary \* 80 / 100 | bc -l`
hra=`echo $salary \* 30 / 100 | bc -l`
echo "Da is: " $da
echo "Hra is: " $hra

OUTPUT:


JOIN OUR DISCORD SERVER

_______________________________

Invitation link -

https://discord.gg/dVUT42XrUC

_______________________________