Answer the question
In order to leave comments, you need to log in
How to remove the smallest digit from a number?
Good afternoon, actually the question is in the header. As far as I understand, you need to check each digit
Answer the question
In order to leave comments, you need to log in
The easiest way, in my opinion, is to translate the number into a string and work with characters. Find the minimum digit by enumeration, remember its position in the line, copy the rest of the line after the minimum digit to the position of the minimum digit.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question