Commit 59f068b7 authored by Alexander Hirsch's avatar Alexander Hirsch
Browse files

Fix missing print_nl

parent 4be96d35
......@@ -6,7 +6,7 @@ void guessNumber(int number, int max) {
while(!success) {
print("Enter a number between 0 and ");
print_int(max);
print("\n");
print_nl();
int guess;
guess = read_int();
success = guess == number;
......@@ -14,9 +14,10 @@ void guessNumber(int number, int max) {
print("you guessed correct");
else {
if(guess < number)
print("the number is bigger\n");
print("the number is bigger");
else
print("the number is smaller\n");
print("the number is smaller");
print_nl();
}
}
print_nl();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment