How can i get the all right digit.... eg. input digit is 332, output is 32. Please see the below code and help me thanks
Code://Get all the right digits int getRightDigit(int id)// eg. 332 { int rtn; if (id < 10) return id%10; rtn = getRightDigit(id/10); printf("%d",rtn); return rtn; }