← Problem book: C
Lesson 12 of 96 · 10 XP
Tens digit
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
You are given an integer n (n ≥ 10). Print its tens digit — the second digit from the right.
Example
Input:
1234
Output:
3
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.