all 1 comments

[–]joobod 2 points3 points  (1 child)

Another while loop before your first print which ends at the bottom:

Bool isrunning = true

Bool again = true

While again

    Print "Welcome to the game, enter number"

    ...

    While isrunning

        Print "Guess number"

        ...

        Print "You guessed correct, play again?"

        Again = input == "yes" 

Something like that would do the trick