Write a shell script to find that the accepted number is Negative, or Positive or Zero
Program :-
#!/bin/bash
echo " Utsav Gohel 91900104011"
echo "Enter a Number"
read num
if [ $num -lt 0 ]
then
echo
"Negative"
elif [ $num -gt 0 ]
then
echo
"Positive"
else
echo
"Neither Positive Nor Negative"
fi
Output :-