Solution to Print One To Max Of N Digits from Jobdu

7 Aug

Question (in Chinese): http://ac.jobdu.com/problem.php?pid=1515

Question Name: Print One To Max Of N Digits

Question Description: Give an integer N, generate and print all the integers from 1 to (10^N – 1).

Input: an integer.

Output: the integers from 1 to (10^N – 1).

The solution:

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!