Monday, 27 May 2013

Shell Script to find gross salary

echo "Enter basic salary:- "
read bs
hra=$(($bs/10\*4))
da=$(($bs/10\*3))
gs=$(($bs+$hra+$da))
echo "Basic Salary is "$bs
echo "HRA is "$hra
echo "DA is "$da
echo "Gross Salary is "$gs

No comments:

Post a Comment