Need an algorithm

I need to figure out an algorithm for a program which does the following:-

if you enter 3 digits between 0 to 9, it'll print all possible combinations of them.

Exmaple, if you entered 1, 2, 3, the program will print 123, 132, 213, 231, 312, 321

Thank you
This is an easy job please try to make it or at least think in how to solve it
and when you get stuck we will help you but at least try to solve it just get the basic idea
use for loops
I agree that for loops would work, but are arrays a valid option?
i didn't get your question, but I think regardless what you use you will have to use for loops(actually any kind of loops)
In hindsight my question didn't make much sense in the first place.
Topic archived. No new replies allowed.