A
A
Alexey2021-11-29 11:16:13
Mathematics
Alexey, 2021-11-29 11:16:13

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

4 answer(s)
R
Ronald McDonald, 2021-11-29
@Zoominger

You're right.

N
Nikolay Savelyev, 2021-11-29
@AgentSmith

yes, you need to check every digit in the number

R
res2001, 2021-11-29
@res2001

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.

D
Dias45, 2021-11-29
@Dias45

Try to find the minimum number and compare all numbers with it and delete it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question