Aggiunte StampaArray e Pausa
This commit is contained in:
parent
7e5fac9c45
commit
39331d79c2
12
Program.cs
12
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();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user