Using the rand() function the computer thinks about a number.
The user has to guess the number. After the user types in
his guess the computer tells if this was bigger or smaller than
the number it generated.
At this point there is no need to allow the user to guess several times.
| Prev | Home (Copyright Gabor Szabo) Perl Training Israel | Next |
| Exercises: Simple Calcualtor | Up | Solution: Simple Calulator |