Возникли серьезные проблемы с этим ...
printf("> "); int x = getchar(); printf("got the number: %d", scanf("%d", &x));
> 1234 got the number: 1