Minimum Cuts can be made in the Chessboard such that it is not divided into 2 parts | function that calculates the maximum no . of cuts ; Driver Code ; Calling function .
function numberOfCuts ( M , N ) { var result = 0 ; result = ( M - 1 ) * ( N - 1 ) ; return result ; } var M = 4 , N = 4 ; var Cuts = numberOfCuts ( M , N ) ; document . write ( " " + Cuts ) ;