0
Three digits are given. Specify the smallest number and then the largest number.
👆
3 Respostas
+ 2
Please specify a programming language in your question tags, '??' doesn't describe a specific language or subject.
It is also recommended for you to sketch a code to show people what you have tried 👍
0
Dev c++
0
Шервон
Please edit your thread, and specify the language in the tags. It still says '??' as I see it.
Hint:
Organize the 3 digits such that you have them ordered in ascending and descending order, by their value. This way you know the largest and smallest number that can be created by combining the digits.
For example 4, 9, 7 (3 digits).
Ascending order -> 479, smallest number with the 3 digits.
Descending order -> 974, the largest number with the 3 digits.
Good luck! 👍