Skywalker
Elite Member
- Messages
- 443
- Reaction score
- 92
- Gender
- Male
- Religion
- Islam

I have this project to do in C, and I'm working on this one function that's driving me crazy.
If anybody here has programming knowledge in any language, I'm trying to make a function that prints all possible combinations of a set of numbers.
For example if you have, 3 5 3 7, it would print:
3
35
33
37
353
357
337
3537
5
53
57
537
3
37
7
Anybody got an idea how to do this?