static int[] Fornecimento(int[] numero)
Console.Write("*****************************************************************");
Console.Write("\n*\t\t\t\t\t\t\t\t*");
Console.Write("\n*\t\tFORNECIMENTO DE NUMEROS\t\t\t\t*");
Console.Write("\n*\t\t\t\t\t\t\t\t*");
Console.Write("\n*****************************************************************");
Console.Write("\n\n\tO que deseja fazer: \n\n\t=>1-Fornecer os numeros \n\t=>2-Gerar numeros automaticamente \n\n\tEscolha uma opcao: ");
opcao = Convert.ToInt32(Console.ReadLine());
public static void Main()
int[] numero = new int[500000];
int retorno = 1, tipo = 0;
Console.Write("*****************************************************************");
Console.Write("\n*\t\t\t\t\t\t\t\t*");
Console.Write("\n*\t\t\tALGORITMO DE ORDENACAO\t\t\t*");
Console.Write("\n*\t\t\t\t\t\t\t\t*");
Console.Write("\n*****************************************************************");
while ((tipo != 1) && (tipo != 2) && (tipo != 3))
Console.Write("\n\n\tQue tipo de algoritmo deseja utilizar: \n\n\t1-Inserction sort \n\t2-Selection sort \n\t3-Bubble sort \n\n\tEscolha uma opção=> ");
tipo = Convert.ToInt32(Console.ReadLine());
numero = Fornecimento(numero);