[Solved] Why do I have the error “Syntax error on token “else”, delete this token” [closed]

[ad_1]

In this line:

    if(guess1 < nmbr); {

the ; ends the if block early, causing the following else to not match any if, leading to a syntax error. Delete the ;.

[ad_2]

solved Why do I have the error “Syntax error on token “else”, delete this token” [closed]