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

Задача 24681. Analysis of the digits of a number - 6


Задача

Темы: Цикл while
Given a natural number N (N<=109). Determine how much its maximum digit exceeds the minimum

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