From 6dbfb0fedbb28633c9b2e9c24b7ca28e6f437a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Mon, 10 Apr 2017 15:00:55 +0200 Subject: [PATCH] Use puts. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.c b/src/main.c index 8fbf6ec..fc3cf13 100644 --- a/src/main.c +++ b/src/main.c @@ -31,12 +31,12 @@ int main(void) { unsigned int a; scanf("%u", &a); if(a == 0) { - printf("Goodbye!\n"); + puts("Goodbye!"); return 0; } else if(a != 1 << n) { - printf("Wrong answer, try again.\n"); + puts("Wrong answer, try again."); } else { - printf("Correct!\n"); + puts("Correct!"); ++n; } }