form four different numbers how can i find out the minimum and maximum which can created from tem, and how can I counted how many steps need to do to get the number 6574
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
a four-digit number in Matlab, the main thing that did not consist of the same numbers, then you need to have the program was of the digits of this number the maximum number and the minimum number (eg, 7465: Minimum-4567, the maximum-7654) and it is necessary, to programme counted how many of these steps need to do to get the number 6574
1 Kommentar
Walter Roberson
am 14 Mai 2013
Bearbeitet: Walter Roberson
am 14 Mai 2013
Once you have found the maximum and minimum, what do you do with that pair?
Whatever you do with that pair, is it certain that you will eventually reach 6574 ?
Is it permitted to have (for example) 1333 since not all of the digits are the same?
Antworten (0)
Siehe auch
Kategorien
Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!