Given a number n, count the total number of digits required to write all numbers from 1 to n.
The first line of input contains an integer T denoting the number of test cases. Then T test cases follow. Each test case contains an integer n.
For each testcase, in a new line, print the total number of digits required to write all numbers from 1 to n.
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.