Number of elements with odd factors in given range | Function to count odd squares ; Driver Code
function countOddSquares ( n , m ) { return Math . pow ( m , 0.5 ) - Math . pow ( n - 1 , 0.5 ) ; } let n = 5 , m = 100 ; document . write ( " " + countOddSquares ( n , m ) ) ;