IBM interview question

Write code to tell how you would seperate decimal digits from an integer.

Interview Answer

Anonymous

25 May 2010

divide by 10 untill you get 0. The remainders of the division are the decimal digits.