summaryrefslogtreecommitdiff
path: root/progs/a230.py
blob: 507faee06e31053e3d3202328a11785b760100cf (plain)
1
2
3
4
5
6
7
def count_Pairs(arr,n): 
    cnt = 0; 
    for i in range(n): 
        for j in range(i + 1,n): 
            if (arr[i] == arr[j]): 
                cnt += 1; 
    return cnt;