added number guesser iterations

This commit is contained in:
Greg Gauthier 2025-04-06 22:54:17 +01:00
parent 035ed5abd5
commit b6260464a2

View File

@ -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;