Infineon Technologies interview question

Write code to print individual digits of an integer.