![]() |
|
#1
|
|||
|
|||
C++ Nested loop codingPlease help me with this.
i want to write a program to accept the number of digits from the user and then print all the combinations possible in that number of digits. the combinations should not repeat the particular number twice. for example: if a users inputs 3 then the program shud print all possible combinations in 3 digit numbers ==> 123,456,789,124,125..... without repeating the number like==>111,112,211,221. Please help me out with this as soon as possible. thank you |
|||
|
#2
|
|||
|
|||
Re: C++ Nested loop coding ...plz helpQuote:
You will learn more if you attempt the problem first. Posting code also provides a great starting point for discussion as this helps frame what topics you seek clarification. |
|
#3
|
|||
|
|||
Re: C++ Nested loop coding ...plz helpHere is a routine that would print for input of 3. You will be required to change it to print for any number of digits.
CPP / C++ / C Code:
|
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Classic recursion game of 8 Queens errors | BKizzle77 | Java Forum | 11 | 11-Aug-2008 01:35 |
| Having problems making nested loop | add4390 | Java Forum | 3 | 27-Nov-2007 09:48 |
| Nested For Loop thread | dragon71 | C++ Forum | 1 | 16-Apr-2007 20:03 |
| Nested for loop with function | Tori | C++ Forum | 11 | 08-Nov-2004 14:02 |
| coding a sentinel controlled loop | tommy69 | C++ Forum | 2 | 10-Mar-2004 15:52 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The