Find the maximum possible value for the given periodic function | Function to return the maximum value of f ( x ) ; Driver Code
function floorMax ( A , B , N ) { let x = Math . min ( B - 1 , N ) ; return Math . floor ( ( A * x ) / B ) ; } let A = 11 , B = 10 , N = 9 ; document . write ( floorMax ( A , B , N ) ) ;