>>114
多分これで解決だお。知らないけど。

while(printf("入力しる "),scanf("%d",&x)!=1 || x<=0 || x>=9) {
  printf("変な値入れるんじゃねーお(;^ω^)\n");
  scanf("%*[^\n]%*c");
}