13th Nov 2017, 5:42 PM
Daumantas Tinteris
Daumantas Tinteris - avatar
3 Réponses
+ 1
https://code.sololearn.com/csW5n64JmNR3/#cs using System; class Program { static void Main() { int[] sequence = { 7, 8, 12, 4, 2, 5, 8, 5, 6 }; Array.Sort(sequence); foreach (int num in sequence) { Console.Write(num + "\n"); } } }
13th Nov 2017, 5:46 PM
AgentSmith
0
no its not like that, see my example, thats how it should look.
13th Nov 2017, 7:20 PM
Daumantas Tinteris
Daumantas Tinteris - avatar
0
Example: array 7 8 12 4 2 5 8 5 6, should get: 7 8 12 4 (4 is smaller than 12) 2 5 8 (2 is smaller than 4) 5 6 (5 is smaller than 8) This is how it should look
13th Nov 2017, 7:31 PM
Daumantas Tinteris
Daumantas Tinteris - avatar