은 안정해져있지만

C언어 카페에서 답변해준건

#include <stdio.h>

int main()
{
int i;

while (1) {

scanf("%d", &i);
if ( getchar() != '\n' ) {
while( getchar() != '\n' );
continue;
}

if (i > 0 && i < 100)
break;
}

printf("%d\n", i);

return 0;
}

이거네요

잉여님 정답이나 이거나 둘다 원리를 이해 못하겠음..