Mar 30, 2013 at 6:59am UTC
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
Mar 30, 2013 at 10:02am UTC
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
hint:
use for loops
Mar 30, 2013 at 10:14am UTC
I agree that for loops would work, but are arrays a valid option?
Mar 30, 2013 at 10:24am UTC
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)
Mar 30, 2013 at 10:31am UTC
In hindsight my question didn't make much sense in the first place.