Number of elements with odd factors in given range | Function to count odd squares ; Driver code
< ? php function countOddSquares ( $ n , $ m ) { return pow ( $ m , 0.5 ) - pow ( $ n - 1 , 0.5 ) ; } $ n = 5 ; $ m = 100 ; echo " Count ▁ is ▁ " , countOddSquares ( $ n , $ m ) ; ? >