diff --git a/a1/program.c b/a1/program.c index 989b67d..96bfe6c 100644 --- a/a1/program.c +++ b/a1/program.c @@ -10,7 +10,7 @@ void check_brackets(const char *code) { char stack[100]; int top = -1; - printf("Read: %s\n", code); + printf("Read: %s", code); for (int i = 0; code[i] != '\0'; i++) { char c = code[i]; @@ -29,7 +29,7 @@ void check_brackets(const char *code) { } } if (top == -1) { - printf("All brackets OK"); + printf("All brackets OK\n"); } else { printf("Unmatched opening bracket %c\n", stack[top]); }