#include <stdio.h>
int digit(int number, int n) {
if (n <= 1) {
return number % 10;
}
return digit(number / 10, n - 1);
}
int main(void) {
printf("%i\n", digit(12345, 1));
printf("%i\n", digit(12345, 2));
printf("%i\n", digit(12345, 3));
printf("%i\n", digit(12345, 4));
return 0;
}