Given a sentence that contains several letters 'e' (English). Find the serial number of the first one.
Solve the problem
without using the built-in string functions, except for a function that returns the length of a string.
Input: The first line is the original sentence.
Output: you need to output the number of the first letter "e" (eng) in a sentence
Input and output example
Test number |
Input |
Output |
1 |
foresete |
4 |
Запрещенные операторы:find