Find the maximum number of handshakes | Calculating the maximum number of handshake using derived formula . ; Driver Code
< ? php function maxHandshake ( $ n ) { return ( $ n * ( $ n - 1 ) ) / 2 ; } $ n = 10 ; echo maxHandshake ( $ n ) ; ? >