Given a byte, swap the two nibbles in it. For example 100 is be represented as 01100100 in a byte (or 8 bits). The two nibbles are (0110) and (0100). If we swap the two nibbles, we get 01000110 which is 70 in decimal.
The first line contains 'T' denoting the number of testcases. Each testcase contains a single positive integer X.
In each separate line print the result after swapping the nibbles.
1 ≤ T ≤ 70
1 ≤ X ≤ 255
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.