Swap digits. Given a two-digit number, swap its digits as shown in the tests below.
Input |
Output |
17 |
71 |
33 |
33 |
29 |
92 |
19 |
91 |
74 |
47 |
Python, Java
Swap digits. Given a two-digit number, swap its digits as shown in the tests below.
Input |
Output |
17 |
71 |
33 |
33 |
29 |
92 |
19 |
91 |
74 |
47 |