Finito per davvero
This commit is contained in:
parent
5a3e8e3b66
commit
f937e585d9
@ -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)}");
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user