Given a number N. check whether a given number N is palindrome or not in it's both formates (Decimal and Binary ).
The first line of the input contains T i.e number of test cases. Each line of the test case contains a number N.
For each test Case, you have to Print "Yes" or "No" if given number is palindrome Print "Yes" else "No".
0<=N < 107
Test case 3: 7 is palindrome in it's decimal and also in it's binary (111) : output is "Yes "
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.