Andrew McCall wrote:
Well, I have just been getting used to programming in Pascal again, and I thought I would write the age-old number guessing game. It all works, well it *should* but I seem to be having problems with some logic in an if statement:
if (iGuess > 0) or (iGuess < 101) then { do my code }
I thought this bit of code should detect if iGuess is inbetween 0 and 100, but it doesn't seem to work! Can anyone tell me why?
Try 'and'. The above is synonymous with 'true'.
Set your outgoing line length wrap to something well under 80. I use 65.