S
Shozda
Guest
i would like to write a program wchich draws a number on of 100 and than it wirte to user it's too much if its bigger than drawed number or it's to low if number (which wrote user) is lower.
I have stomething like this but I have got errors:
well I get multiple errors. could anybodie help?
I have stomething like this but I have got errors:
Code:
num=`$((RANDOM/327))`
echo „write a number from 0 -100”
read type
until [ $num = $type ]
do
if [$num –lt $type]
then echo “too much!”
sleep 1
clear
echo “Try again!”
read type
esle if [$num –gt $type] then
echo “too low!”
sleep 1
echo “Try again!”
read type
fi
fi
done
well I get multiple errors. could anybodie help?