Thursday, May 1, 2008

Lak’s basic salary is input from the keyboard. His dearness allowance is 20% of the basic salary, and house rent allowance is 10% of basic salary. Wri

# SS1

# Calculates the gross salary

# Usage : SS1

echo Enter the basic salary

read bsal

da=’echo $bsal \* 20/100 | bc‘

hra=’echo $bsal \*10/100 | bc‘

gs=’echo $bsal + $da + $hra | bc‘

echo “Gross salary = Rs.$gs”

No comments: