뭐이런식으로 하고싶다는거아님?


글구 첫번째 scanf를 굳이 while문밖에 할필요없어보이는데

while(1)

{

scanf

getchar();

if(..)

{...}

else

{...}

}


해도되잖아?