I want to write a program that can get the left most digit each time , the below program can get the the left most digit at first, but how can i get the others eg. input digit 33332.....Please help!!Thanks
Code:int getLeftDigit(int n)
{ if (n<10)
return n;
rtn = getLeftDigit(n/10);
return n;
}