int[] numeros = { 10, 55, 3, 74, 21 };
Console.WriteLine("Arreglo inicial:");
Console.WriteLine("Arreglo ordenado:");
static void OrdenarBurbuja(int[] arr)
for (int i = 0; i < n - 1; i++)
for (int j = 0; j < n - 1 - i; j++)
Console.WriteLine("Iteración {i + 1}, Paso {j + 1}:");
static void MostrarArreglo(int[] arr)
Console.Write(num + " ");