added number guesser iterations
This commit is contained in:
parent
035ed5abd5
commit
b6260464a2
@ -1,11 +1,6 @@
|
|||||||
BEGIN
|
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 #
|
INT random_number = ENTIER(next random * 100.0) + 1; # Generate directly #
|
||||||
|
|
||||||
print(("the secret number is", random_number, newline));
|
print(("the secret number is", random_number, newline));
|
||||||
|
|
||||||
print("guess a number: ");
|
print("guess a number: ");
|
||||||
WHILE
|
WHILE
|
||||||
INT guess = read int;
|
INT guess = read int;
|
||||||
|
Loading…
Reference in New Issue
Block a user