Pregunta de entrevista de IBM

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

Respuesta de la entrevista

Anónimo

25 may 2010

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