連続して(例えばscanfで)入力を受け付けると、
ストリームに\0が残っているので、
1回目のscanfと2回目のscanfの間にはダミー変数に
\0を読ませなければならない、と聞きましたが、
以下のコードは思った通り(?)に動きます。
ご教授頂けませんか?
ちなみにコンパイラはgcc、OSはFreeBSDです。

#include <stdio.h>

int
main(void)
{

int n1,n2;

printf("Please enter a number:\n");
scanf("%d",&n1);
printf("Please enter the other number:\n");
scanf("%d",&n2);
printf("Your entered number are: %d %d\n",n1,n2);

return 0;

}