Created
June 13, 2012 08:57
-
-
Save psy0rz/2922915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@cursus ~]# cat raad | |
#!/bin/bash | |
(( GETAL= $RANDOM % 10 )) | |
while true; do | |
echo -n "Raad het getal onder te 10: " | |
read RAAD | |
if [ $GETAL -gt $RAAD ]; then | |
echo "Mijn getal is groter" | |
fi | |
if [ $GETAL -lt $RAAD ]; then | |
echo "Mijn getal is kleiner" | |
fi | |
if [ $GETAL -eq $RAAD ]; then | |
echo "het is goed!!" | |
exit | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment