#include "stdio.h"
int position(unsigned long number, int digit)
{
int i=0, remainder;
unsigned long number0=number;
while (number0!=0)
{
number0=number/10;
remainder=number-number0*10;
number=number0;
if (remainder==digit)
{
i++;break;
}
else
i++;
}
if (number0==0)
return(0);
else
return(i);
}
void main()
{
unsigned long number=324263555;
int digit=8;
printf("(%ld,%d)=%d\n",number,digit,position(number,digit));
}