Find the maximum number of handshakes | C # program to find maximum number of handshakes . ; Calculating the maximum number of handshake using derived formula . ; Driver code
using System ; class GFG { static int maxHandshake ( int n ) { return ( n * ( n - 1 ) ) / 2 ; } public static void Main ( ) { int n = 10 ; Console . Write ( maxHandshake ( n ) ) ; } }