-1

I am writing a program that allows me to find all possible pairs of square numbers.
e.g an array of {5,25,3,25,4,2,25} will return [5,25],[5,25],[2,4],[5,25]
since 25 is square of 5
currently, i am using a nested for loop to find the squares. I'm just wondering if there is a better way to do thi...