Use puts.

This commit is contained in:
Nicolás A. Ortega 2017-04-10 15:00:55 +02:00
parent 9c22b0905e
commit 6dbfb0fedb
No known key found for this signature in database
GPG Key ID: 3D786FB3123FF1DD

View File

@ -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;
}
}