First of all, thanks a lot for your help!
The program now outputs '1-2-3'
When Useit returns, all values of used = .true.
How can it be written such that it continues through all different cominations?
1-2-3
1-3-2
2-1-3
2-3-2 etc.
Any suggestions?
MODULE div
INTEGER, PARAMETER :: usedmax =...