maximum number of handshakes

 maximum number of handshakes 


    n=int(input())

    s=0

    for i in range(1,n):

        s+=i

    print(s)

Comments