So I just installed eclipse on windows after having too many problems with my old installation on a vm running Ubuntu.
All problems gone except for what I wrote in the title. Scanf text never comes up first, no matter which program I'm running. It shows text when I have entered all that I can enter. Let me give you an example:
#include <stdio.h>
#include <stdlib.h>
int main() {
int number1;
int number2;
printf ("Type in a number \n");
scanf ("%d", &number1);
printf ("Type in a number \n");
scanf ("%d", &number2);
int number3 = number1 * number2;
printf ("%d", number3);
return 0;
}
Console looks like this:
2
3
Type in a number
Type in a number
6
2 and 3 I had to type in first, then the last three lines showed up. That's not how it's supposed to be is it?
Thanks for any help!