# 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)
      
      Python language logo

      Find Maximum Number Of Handshakes

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.