Is there an algorithm in C++ to determine the digit located on a given place value of an integer? For example, 9 would be outputted as the tens value of 196.

If none exists, is it possible to code it? If so, what are some of your ideas to do it?