Find Range Value of the Expression | Function to return the value of the given expression ; Value of the first term ; Value of the last term ; Driver code ; Get the result
function get ( L , R ) { let x = 1.0 / L ; let y = 1.0 / ( R + 1.0 ) ; return ( x - y ) ; } let L = 6 , R = 12 ; let ans = get ( L , R ) ; document . write ( Math . round ( ans * 100 ) / 100 ) ;