Find Maximum Number Of Handshakes

    0

    0

    CrypticSai-08

    # number of people
    N = 30
    # formula
    no_of_handshakes = int(N * ((N - 1) / 2))
    # print number of handshakes
    print('Maximum number of handshakes possible for', N, 'pople are', no_of_handshakes)
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.