From f937e585d965ec4f1d5e2de063389d61e8928cc5 Mon Sep 17 00:00:00 2001 From: La Programmatrice Verde Date: Thu, 3 Apr 2025 20:17:26 +0200 Subject: [PATCH] Finito per davvero --- Program.cs | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Program.cs b/Program.cs index 513e820..e2097c4 100644 --- a/Program.cs +++ b/Program.cs @@ -9,15 +9,6 @@ class Program { Console.Write($"Inserire il numero n. {i + 1}: "); array[i] = Convert.ToInt32(Console.ReadLine()); } - - int max = int.MinValue; - for (int i = 0; i < array.Length; i++) { - if (array[i] > max) { - max = array[i]; - } - } - - Console.WriteLine($"Massimo: {max}"); Console.WriteLine($"Massimo ricorsivo: {Ricorsione(array, int.MinValue, 0)}"); }