Skip to main content

Generate all initial n numbers formed from 3 and 4

Given a size N, which indicates number of elements which is combination of 2 and 3. Our target is to print positive N number which is make by using of 2 and 3 digit values.

Important that generate number should be ascending order. For example.

 
Input N : 50
OutPut  : 
 3  4  33  34  43  44  333  334  343  344  433  434  443  444 
 3333  3334  3343  3344  3433  3434  3443  3444  4333  4334  
 4343  4344  4433  4434  4443 4444  33333  33334  33343  33344  
 33433  33434  33443  33444  34333  34334  34343  34344 
 34433  34434  34443  34444  43333  43334  43343  43344

Here given code implementation process.





Comment

Please share your knowledge to improve code and content standard. Also submit your doubts, and test case. We improve by your feedback. We will try to resolve your query as soon as possible.

New Comment