0
Anyone could help?
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");
}
}
}
0
no its not like that, see my example, thats how it should look.
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