using System;
public class Program
{
public static void Main()
int[] a = {4, 5, 11, 13, 17, 21, 17};
int iteraciones = 0;
//Burbuja
for(int x = 1; x < a.Length; x++)
for(int y = x - 1; y < a.Length - 1; y++)
if(a[x] < a[y])
int tmp = a[y];
a[y] = a[x];
a[x] = tmp;
}
iteraciones++;
foreach(var item in a)
Console.WriteLine(item);
Console.WriteLine("<" + iteraciones + ">");