Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int getIthDigit(int x, int i) {
- return (int)(x / round(pow(10, i))) % 10;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement