Cyclic rotation. Given a four-digit integer number, perform its cyclic rotation by two digits, as shown in the tests below.
Input |
Output |
1234 |
3412 |
5678 |
7856 |
9876 |
7698 |
1122 |
2211 |
8070 |
7080 |
Python, Java
Cyclic rotation. Given a four-digit integer number, perform its cyclic rotation by two digits, as shown in the tests below.
Input |
Output |
1234 |
3412 |
5678 |
7856 |
9876 |
7698 |
1122 |
2211 |
8070 |
7080 |