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.
-
1) Generate N serial number formed by the combination of 3 and 4 in java
2) Generate N serial number formed by the combination of 3 and 4 in c++
3) Generate N serial number formed by the combination of 3 and 4 in golang
4) Generate N serial number formed by the combination of 3 and 4 in c#
5) Generate N serial number formed by the combination of 3 and 4 in vb.net
6) Generate N serial number formed by the combination of 3 and 4 in php
7) Generate N serial number formed by the combination of 3 and 4 in node js
8) Generate N serial number formed by the combination of 3 and 4 in typescript
9) Generate N serial number formed by the combination of 3 and 4 in python
10) Generate N serial number formed by the combination of 3 and 4 in ruby
11) Generate N serial number formed by the combination of 3 and 4 in scala
12) Generate N serial number formed by the combination of 3 and 4 in swift
13) Generate N serial number formed by the combination of 3 and 4 in kotlin
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