Description: A book page numbers from the natural numbers sequentially coding until the natural number n. The page of the book in accordance with the usual custom choreography
Each page do not contain the excess leading digits 0. For example, the first six with a digital 6 shows, rather than 06 or 006. Number
Word count requirements calculated the total page number n of a given book, how many times were used in a book full folio numbers 0, 1,
2, ..., 9.
« Programming task: given indicates the total pages in the book decimal integer n (1 ≤ n ≤ 109). Full Page programming calculations were used
To how many times the numbers 0, 1, 2, ..., 9.
« Data input:
The input data from a text file called input.txt file.
Each file is only one line given the said book page number integer n.
« Results output:
The end of the program runs, the calculation results output to the file output.txt. Output file to a total of 10 lines in the k-th row
The output page numbers used in the number of ti
To Search:
File list (Check if you may need any files):
E2.doc