Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int takeDigit(int num, int digit)
- {
- for (int i = 0; i < digit; i++)
- {
- num /= 10;
- }
- return num %= 10;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement