Write a shell script to check if a number enter by user is greater than 100 or not?
echo
“enter a number”
read
a
if
[ $n –gt 100 ]
then
echo”
greater than 100”
else
echo
“ number is not greater than 100”
fi
OUTPUT:
enter
a number
50
number is not greater
than 100
Comments
Post a Comment