int n = 1;
for(;;)
{
 n += (int)pow(10, floor(log10(n));
 printf("%d,", n);
}