while(1)

{

scanf_s("%d",&n);


if((scanf_s("%d",&n)==0)&&(n=='x'))

break;

}


이거 되냐???

한달차 프린이라 ...