Take as input N, a number. Write a recursive function which prints counting from 1 to N in lexicographical
order. In lexicographical (dictionary) order 10, 100 and 109 will be printed before 11.
Input Format
Enter a number N.
Constraints
None
Output Format
Display all the numbers upto N in a lexicographical order
Sample Input
10
Sample Output
@ 1 10 2 3 4 5 6 7 8 9
Answers
Answered by
15
Explanation:
Answered by
0
Answer:
Explanation:
thanks
Similar questions
English,
2 months ago
Social Sciences,
2 months ago
Social Sciences,
6 months ago
History,
11 months ago
Science,
11 months ago