Advertisement
tampurus

4 gross salary of employee

Dec 13th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.24 KB | None | 0 0
  1. echo enter your salary
  2. read sal
  3. if [[ $sal -lt 15000 ]]
  4. then
  5.     da=`expr $sal \* 90 / 100`
  6.     hra=`expr $sal \* 10 / 100`
  7. else
  8.     da=`expr $sal \* 98 / 100`
  9.     hra=5000
  10. fi
  11. sal=`expr $da + $hra + $sal`
  12. echo your gross salary is $sal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement