added number guesser iterations
This commit is contained in:
parent
035ed5abd5
commit
b6260464a2
@ -1,11 +1,6 @@
|
||||
BEGIN
|
||||
on logical file end (stand in,
|
||||
(REF FILE f) BOOL: (print(("Goodbye!",new line));stop));
|
||||
|
||||
INT random_number = ENTIER(next random * 100.0) + 1; # Generate directly #
|
||||
|
||||
print(("the secret number is", random_number, newline));
|
||||
|
||||
print("guess a number: ");
|
||||
WHILE
|
||||
INT guess = read int;
|
||||
|
Loading…
Reference in New Issue
Block a user