Guessing Game
by camsky209 from LinuxQuestions.org on (#5RHG8)
This is my code is it say that
./guessing_game: line 17: syntax error: unexpected end of file
system_number=87
no_of_guess=1
for (( ; ; ))
do
read -p "Guess a number between 0 and 99, inclusive:"
if [$user_number -eq $system_number ]
then
echo "your number is right!"
else
echo "your number is wrong"
if [ $user_number -ge $system_number ]
then
echo "Your guess to to high."
else
echo "Your guess to to low."
fi
./guessing_game: line 17: syntax error: unexpected end of file
system_number=87
no_of_guess=1
for (( ; ; ))
do
read -p "Guess a number between 0 and 99, inclusive:"
if [$user_number -eq $system_number ]
then
echo "your number is right!"
else
echo "your number is wrong"
if [ $user_number -ge $system_number ]
then
echo "Your guess to to high."
else
echo "Your guess to to low."
fi