Олимпиадный тренинг

Задача 24685. Analysis of the digits of a number - 2


Задача

Темы: Цикл while
Given a natural number N (N<=109). Determine the ordinal number of its minimum digit, counting from the beginning of the number (if there are several such digits, then print the number of the first of them)

Input and output example
test number Input Output
1 45545 1
2 100 2