summaryrefslogtreecommitdiff
path: root/progs/a166.py
blob: effe84705bf85a2ec3c2a4550014a1a94c3a052f (plain)
1
2
3
4
5
6
7
def get_Pairs_Count(arr,n,sum):
    count = 0  
    for i in range(0,n):
        for j in range(i + 1,n):
            if arr[i] + arr[j] == sum:
                count += 1
    return count