My attempt at the Guess loop

The output worked as expected, so I’m happy with that.

This is the first time I have dabbled in programming since the using ZX Spectrum and BBC Model B BASIC, so although the thought processes are similar, the instructions are new.

I am very much enjoying learning so far.

Looking at the solution, it seems that I got it slightly wrong, I forgot the { } around the statement.

It still worked, but I have now changed it to this:

Privacy & Terms