#! /bin/sh
# Write a shell script to read a basic salary of an employee, if the basic salary is less than or equal to 1500 then display the message as the employee type is class-3 otherwise display the message is employee class-2.
echo " Enter the employee basic salary "
read basic
if test $basic -le 1500
then
echo "The employee type is class-3 "
else
echo "The employee type is class-2 "
fi
# Write a shell script to read a basic salary of an employee, if the basic salary is less than or equal to 1500 then display the message as the employee type is class-3 otherwise display the message is employee class-2.
echo " Enter the employee basic salary "
read basic
if test $basic -le 1500
then
echo "The employee type is class-3 "
else
echo "The employee type is class-2 "
fi



0 comments:
Post a Comment