Three digits are given. Specify the smallest number and then the largest number. | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Three digits are given. Specify the smallest number and then the largest number.

šŸ‘†

5th Mar 2020, 4:18 AM
ŠØŠµŃ€Š²Š¾Š½
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 šŸ‘
5th Mar 2020, 4:43 AM
Ipang
0
Dev c++
5th Mar 2020, 4:52 AM
ŠØŠµŃ€Š²Š¾Š½
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! šŸ‘
5th Mar 2020, 8:18 AM
Ipang