Given a Binary Number B, Print its decimal equivalent.
The first line of input contains an integer T denoting the number of test cases. The description of T test cases follow. Each test case contains a single Binary number B.
For each testcase, in a new line, print each Decimal number in new line.
1 <= T <= 100
1 <= Digits in Binary <= 16
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.