Find the maximum number of handshakes | Calculating the maximum number of handshake using derived formula . ; Driver Code
function maxHandshake ( n ) { return ( n * ( n - 1 ) ) / 2 ; } let n = 10 ; document . write ( maxHandshake ( n ) ) ;