ZERO Number
Submissions: 2240   Accuracy:


  Difficulty: Basic   Marks: 1

A ZERO number is a number which has zeroes present in it, but there should be no zero present in the beginning of the number. For example 3210, 8050896, 70709 are all ZERO numbers whereas 02364, 03401 are not.
The task is to check whether the given number is a ZERO number or not.

Input : 707069
Output : It is a ZERO number.
Explanation: 707069 does not contains zeros at the beginning.

Input : 02364
Output : It is not a ZERO number.
Explanation: in 02364 there is a zero at the beginning of the number.

Input : 
The first line of input contains an integer T denoting the Test cases. Then T test cases follow. 
Second line contains value of N.

Output : 
Yes, if N is ZERO Number; else NO

Constraints :
1 ≤ T ≤ 150
1 ≤ N ≤ 100000

Input : 

Output :

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

Contributor: Mohit Gupta_OMG :)
Author: Mohit Gupta 4

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, generate link and share the link here.

to report an issue on this page.