BETA
School Problem's Submission isn't counted in score!

Submissions: 1187 Accuracy:

31.17%

Numbers with 0 as a digit
     

Given an integer N. The task is to count the number of integers from 1 to N contains 0’s as a digit.

Input:
The first line consists of an integer T i.e number of test cases. The only line of each test case consists of an integer N.

Output:
Print the required output.

Constraints: 
1<=T<=100
1<=n<=10000

Example:
Input:

2
21
101

Output:
2
11

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Saksham Ashtputre

Set Default Code

					   
It is recommended to 'Compile & Test' your code before clicking 'Submit'!

Compilation/Execution Result:

Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.