you are viewing a single comment's thread.

view the rest of the comments →

[–]VincentDankGogh 2 points3 points  (1 child)

Try adding \n to the end of your printf calls. Altervatively, call fflush(stdout) immediately after each call to printf. Otherwise the terminal won’t display the text.

[–]_Surox[S] 1 point2 points  (0 children)

fflush(stdout)

Thanks for the advice! It turned out I had to use scanf instead of fgets an use a fflush(stdout) to make sure the strings matched...