Fix missing print_nl

This commit is contained in:
Alex Hirsch 2019-05-21 20:37:48 +02:00
parent 4be96d35a5
commit 59f068b72b

View File

@ -6,7 +6,7 @@ void guessNumber(int number, int max) {
while(!success) { while(!success) {
print("Enter a number between 0 and "); print("Enter a number between 0 and ");
print_int(max); print_int(max);
print("\n"); print_nl();
int guess; int guess;
guess = read_int(); guess = read_int();
success = guess == number; success = guess == number;
@ -14,9 +14,10 @@ void guessNumber(int number, int max) {
print("you guessed correct"); print("you guessed correct");
else { else {
if(guess < number) if(guess < number)
print("the number is bigger\n"); print("the number is bigger");
else else
print("the number is smaller\n"); print("the number is smaller");
print_nl();
} }
} }
print_nl(); print_nl();