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

Задача 24678. Analysis of the digits of the number - 8


Задача

Темы: Цикл while
Given a natural number N (N<=109). Determine how many times the last digit occurs in it (excluding the last digit).

Input and output example
test number Input Output
1 45545 2
2 445 0