Given two integers L and R . Find the resultant after applying the series of Bitwise AND ( & ) operation on every natural number between the Range L and R (including both).
It is recommended to find the result without traversing whole range of given numbers
First line contains an integer 'T' denoting the number of test cases. Then T test cases follow. Each test case consists of a single line conaitning two space separated integers L and R.
Per test case print the required answer in a newline.
Input: For L = 8 and R = 13
Output: 8 AND 9 AND 10 AND 11 AND 12 AND 13 = â€‹8
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.