Maria Moreno

Generation

generate functionTue, 09 May 2023

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

class Program { private static int[] scores = new int[] { 5, 3, 4, 6, 1, 2 }; private static string[] names = new string[] { "Oswaldo", "Manuel", "Eduardo", "David", "Bryan", "Javier" }; private static void Main(string[] args) { int[] scores = new int[] { 5, 3, 4, 6, 1, 2 }; string[] names = new string[] { "Oswaldo", "Manuel", "Eduardo", "David", "Bryan", "Javier" }; int[] sortedScores = SortScores(scores); string[] sortedNames = SortNames(sortedScores); Console.WriteLine($"First place: {sortedNames[0]} ({sortedScores[0]})"); Console.WriteLine($"Second place: {sortedNames[1]} ({sortedScores[1]})"); Console.WriteLine($"Third place: {sortedNames[2]} ({sortedScores

Want to kickstart your project?Use the new AI Studio to create your code