First digit after decimal point. Given a positive real number, print its first digit to the right of the decimal point.
Input |
Output |
1.79 |
7 |
10.34 |
3 |
0.001 |
0 |
179 |
0 |
19.99 |
9 |
Python, Java
First digit after decimal point. Given a positive real number, print its first digit to the right of the decimal point.
Input |
Output |
1.79 |
7 |
10.34 |
3 |
0.001 |
0 |
179 |
0 |
19.99 |
9 |