BlueBook
Find the first occurrence of a space (ASCII value 32) in a string.
Input Specification
The first line of input contains an integer
Output Specification
For each string given in input, print the position at which the first
blank was found in that string, on one line. The first character in a
string has position 1, the second 2, and so on. If no blank was found in
the string, print 0
instead.
Sample Input
Copy
2
2
22
Sample Output
Copy
1
0
Comments