Use puts.
This commit is contained in:
parent
9c22b0905e
commit
6dbfb0fedb
@ -31,12 +31,12 @@ int main(void) {
|
|||||||
unsigned int a;
|
unsigned int a;
|
||||||
scanf("%u", &a);
|
scanf("%u", &a);
|
||||||
if(a == 0) {
|
if(a == 0) {
|
||||||
printf("Goodbye!\n");
|
puts("Goodbye!");
|
||||||
return 0;
|
return 0;
|
||||||
} else if(a != 1 << n) {
|
} else if(a != 1 << n) {
|
||||||
printf("Wrong answer, try again.\n");
|
puts("Wrong answer, try again.");
|
||||||
} else {
|
} else {
|
||||||
printf("Correct!\n");
|
puts("Correct!");
|
||||||
++n;
|
++n;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user