Count the numbers between 1 to N containing 4 as a digit.
Each line will contain the number of test cases T.
Each test case will contain a number N.
Print the count of numbers for each test case in a separate line.
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.