diff --git a/main.c b/main.c index 03ce4df..2ecec31 100644 --- a/main.c +++ b/main.c @@ -125,6 +125,7 @@ int main() { printf("\n\nINPUT BELOW:\n"); // DIVIDER char fruit[20]; //MAX 20 CHARACTERS printf("Pick a fruit: "); + fflush(stdout); // this forces the buffer to print NOW, fixing the "bug" in which it prints out everything AFTER the next line (scanf) scanf("%s", fruit); printf("\nYou choose %s as your fruit!", fruit);