# Shell Programming
# Positive negative or zero
echo -n "Hello "; logname
echo -n "enter a number : "
read a
if [ $a -lt 0 ]
then
echo " $a is negetive"
elif [ $a -gt 0 ]
then
echo "$a is Positive"
else
echo "$a is Zero"
fi
# Positive negative or zero
echo -n "Hello "; logname
echo -n "enter a number : "
read a
if [ $a -lt 0 ]
then
echo " $a is negetive"
elif [ $a -gt 0 ]
then
echo "$a is Positive"
else
echo "$a is Zero"
fi
No comments:
Post a Comment
Don't be a silent reader...
Leave your comments...
Anu