in a function , every person shakes hand with every other person . if there was a total of 28 handshakes in the function , how many persons were present in the function ?
suppose there are nn persons present in a function and every person shakes hand with every other person . then , total number of handshakes = nc 2 = n ( n − 1 ) / 2 n ( n − 1 ) = 28 × 2 n ( n − 1 ) = 56 n = 8 answer a 8
subtract(subtract(28, const_10), const_10)