https://www.acmicpc.net/problem/1110
이 문제 한번 풀어보려고 했는데
#include <stdio.h>
#include <stdlib.h>
int main() {
int x,ten,one,temp,count;
scanf("%d",&x);
while(1)
{
one=x;
ten=(x-one)/10;
temp = (ten+one);
if((ten*10)+temp==x)
{count++;break;}
else
{
x=(ten*10)+temp;
count++;
}
}
printf("%d",count);
return 0;
}
로 했는데 입력해도 깜빡거리기만 하네요.. 도와주십쇼ㅠㅠ
while(1)에 갇혔나보져
http://ideone.com/6qF4op
감사합니다 ㅠㅠ