Given two given numbers a and b where 1<=a<=b, find the number of perfect squares between a and b (a and b inclusive).
First line of input contains number of test cases T. Each line of test case contain numbers 'a' and 'b' seperated by a single space.
Number of perfect squares are displayed.
1 <= T <= 100
1 <= a,b <= 105
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.