Reverse digits
Submissions: 10802   Accuracy:

50%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!
     

Write a program to reverse digits of a number N.

Input:
The first line of input contains an integer T, denoting the number of test cases. T testcases follow. Each test case contains an integer N.

Output:
For each test case, print the reverse digits of number N .

Constraints:
1 ≤ T ≤ 104
1 ≤ N ≤ 10
15

Example:
Input:
2
200
122
Output:
2
221

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

Author: rajatjha


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

to report an issue on this page.