'Prevent Increasing Value from Pushing Another

Not sure how to phrase my question, sorry for the confusing title. Basically, I have two variables being displayed (score and high score) that increase as a user plays the game I am making.

    printf("Score: %d", score);
    printf("%s", SPACE);
    printf("High Score: %d", highScore);

When score increases as you play, it starts to push over high score beyond my "game board". I'm sure there's a basic fix for this, but I am new. How should I prevent this from happening?

c


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source