Problem with eclipse and a simple c program



I have some problems when this simple program run with eclipse:

#include <stdio.h>
#include <stdlib.h>



int main()
{
int number;
printf("Enter a number\n");
scanf("%d", &number);
printf("You entered %d", number);
return 0;
}

In run mode on consolle nothing appear, "enter a number" appears only
after the inserction of a number and not before. Why?
Thanks
.



Relevant Pages