How to extract a single digit from a number

Divide a number by 10 will give you a digit as int sample:
256/10=25.6==25
25/10=2.5==2

256%10=6
25%10=5
2%10=2

This video will surely help:

Code: