BETA
School Problem's Submission isn't counted in score!

Total Submissions: 3133 Accuracy:

43.47%

Reverse digit
     

Write a program to reverse digits of a number.

Input:

The first line of input contains an integer T denoting the number of test cases.
The first line of each test case is N.

Output:

Print the reverse digit of a N digit number.

Constraints:

1 ≤ T ≤ 100
1 ≤ N ≤ 1000000000

Example:

Input:
2
200
122

Output:
2
221

 

** For More Input/Output Examples Use 'Expected Output' option **

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.