Вы находитесь на странице: 1из 1

POSITIVE NEGATIVE OR ZERO

PROGRAM:
echo
read
if [
then
echo
else
if [
then
echo
else
echo
fi

"Enter a Number:"
n
$n -gt 0 ]
"Number is positive"
$n -eq 0 ]
"Number is Zero"
"Number is Negative"

OUTPUT:
[16eee77@localhost untitled folder]$ vi yasmine.sh
[16eee77@localhost untitled folder]$ sh yasmine.sh
enter a number
-87
the number is negative