En un club de atletismo se deben indicar las premiaciones mediante un programa así: Usando ciclos debe pedir por consola el número de competidores Ingresar por teclado los tiempos de cada competidor. Mostrar en consola los tres mejores tiempos, acompañados con el texto primer, segundo y tercer puesto con su respectivo puntaje. Nota: Los tiempos más cortos serán los ganadores
public void premiacion() { Console.WriteLine("Ingresar numero de competidores"); int numCompetidores = int.Parse(Console.ReadLine()); int[] tiempos = new int[numCompetidores]; int temp = 0; for (int i = 0; i < tiempos.Length; i++) { Console.WriteLine($"Ingresar tiempo competidor {i + 1}"); tiempos[i] = int.Parse(Console.ReadLine()); } for (int i = 0; i < tiempos.Length; i++) { for (int j = 0; j < tiempos.Length - 1; j++) { if (tiempos[j] > tiempos[j + 1]) { temp = tiempos[j + 1]; tiempos[j + 1] = tiempos[j]; tiempos[j] = temp;