Q:

How can I add a space after the first printf statement?

Random number guessing game in C. 
User has 10 guesses before the game will quit if the correct number is not guessed.    
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main() {
int theNumber;
int userGuess;
int counter = 10;
int lowerBound = 1, upperBound = 100;

// seed function
srand((unsigned)time(NULL));

// generates number between 1 and 100
theNumber = lowerBound + rand() % (upperBound - lowerBound + 1);

printf("Please guess a number (1-100): ");

for (counter = 9; counter <= 10; counter--) {

    // get users guess
    scanf("%d", &userGuess);

    if (userGuess == theNumber) {
        printf("You guessed it! The number was: %d", theNumber);
        break;
    }

    if (userGuess < theNumber && counter >= 1)
        printf("Your guess was too low. You have %d guesses remaining. Guess higher: ", counter);

    if (userGuess > theNumber && counter >= 1)
        printf("Your guess was too high. You have %d guesses remaining. Guess lower: ", counter);

    if (counter == 0) {
        printf("\nYou ran out of guesses. The number was: %d \n", theNumber);
        break;
    }

}

return 0;

}

Sample output: 
Please guess a number (1-100): 100
Your guess was too high. You have 9 guesses remaining. Guess lower: 90

How can I add a space after the first printf statement so that the output looks like this? 
Desired output: 
Please guess a number (1-100): 100

Your guess was too high. You have 9 guesses remaining. Guess lower: 90

A:

if user enters text like 'one' ! what happens?
always check for errors:
if (scanf("%d", &userGuess) != 1){
    printf("incorrect input.\n");
    return 1;
}

if you need vertical space use printf("\n");.
if you need vertical space just once use:  
if (counter == 9)
    printf("\n");

sample code:  
#include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main() {
    int theNumber;
    int userGuess;
    int counter = 10;
    int lowerBound = 1, upperBound = 100;

    // seed function
    srand((unsigned)time(NULL));

    // generates number between 1 and 100
    theNumber = lowerBound + rand() % (upperBound - lowerBound + 1);

    printf("Please guess a number (1-100): ");

    for (counter = 9; counter <= 10; counter--) {

        // get users guess
        if (scanf("%d", &userGuess) != 1){
            printf("incorrect input.\n");
            return 1;
        }
        //if (counter == 9)
        printf("\n");

        if (userGuess == theNumber) {
            printf("You guessed it! The number was: %d", theNumber);
            break;
        }

        if (userGuess < theNumber && counter >= 1)
            printf("Your guess was too low. You have %d guesses remaining. Guess higher: ", counter);

        if (userGuess > theNumber && counter >= 1)
            printf("Your guess was too high. You have %d guesses remaining. Guess lower: ", counter);

        if (counter == 0) {
            printf("\nYou ran out of guesses. The number was: %d \n", theNumber);
            break;
        }

    }

    return 0;
}

