**AIM - To return an integer representing the number of square integers in the inclusive range from A to B .**

example - for input **3 9**

the output would be **2** as 4 and 9are the two square integers

*We can simply take square root of ‘a’ and square root of ‘b’ and count the perfect squares between them using*

` floor(sqrt(b)) - ceil(sqrt(a)) + 1`

can someone explain me the concept .i know putting the inputs the output is right…but wanted to know the LOGIC behind it.