Numbers with 0 as a digit
Submissions: 1892   Accuracy:

36.23%

  Difficulty: Basic   Marks: 1

Given an integer N. The task is to count the number of integers from 1 to N(inclusive) which contain 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
Author: saksham0751


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.



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


to report an issue on this page.