Hello All,
I am new to C programming. I was trying to write a code that will allow me to take an array of n elements, and take every combination of pairs and write it.
example: array: 1, 2, 3, 4, 5
output: (1,2), (1,3),(1,4),(1,5),(2,3),(2,4),(2,5),(3,4),(3,5),(4,5)
I would truly appreciate the help, keep in mind the example had a set number, im trying to set it up for n amount of inputs