Last digit of integer. Given an integer number, print its last digit.
Input |
Output |
179 |
9 |
40 |
0 |
101 |
1 |
222 |
2 |
1923 |
3 |
74 |
4 |
505 |
5 |
996 |
6 |
3487 |
7 |
308 |
8 |
1 |
1 |