What i'm trying to achieve is that, I have an array,
for eg: a={1,2,3}
Now, I need an array which combines all the elements in the array.
ie, the output that is needed should be like.
{[1,1],[1,2],[1,3],[2,1],[2,2],[2,3],[3,1],[3,2],[3,3]}
I know that, in StackOverflow asking a question without showing what I have done is not at all appreciated, but still, I'm totally blank and i dont have any ideas to code this. Any help is very much appreciated.