From 39331d79c2ce0dbc1a252c8942adc30b1f54ae45 Mon Sep 17 00:00:00 2001 From: La Programmatrice Verde Date: Fri, 7 Feb 2025 08:47:49 +0100 Subject: [PATCH] Aggiunte StampaArray e Pausa --- Program.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Program.cs b/Program.cs index 3248b34..688e210 100644 --- a/Program.cs +++ b/Program.cs @@ -39,4 +39,16 @@ class Program { } + + static void StampaArray(int[] p_array) { + for (int i = 0; i < p_array.Length; i++) { + Console.WriteLine($"Elemento {i}: {p_array[i]}"); + } + } + + static void Pausa() { + Console.WriteLine("Premere un tasto per continuare. . ."); + Console.ReadKey(); + Console.Clear(); + } }