Opzione 2

This commit is contained in:
La Programmatrice Verde 2024-12-11 09:02:21 +01:00
parent ff939d97fa
commit e344e1ce9f
9 changed files with 14 additions and 2 deletions

View File

@ -56,6 +56,13 @@ class Program
break; break;
case 2: case 2:
Console.Clear(); Console.Clear();
if (opzione1==false){
Console.WriteLine("Errore: è necessario creare l'insieme di numeri prima di stamparlo");
}
else{
StampaArray(insieme1);
}
Pausa();
break; break;
case 3: case 3:
Console.Clear(); Console.Clear();
@ -94,4 +101,9 @@ class Program
Console.ReadLine(); Console.ReadLine();
Console.Clear(); Console.Clear();
} }
static void StampaArray(int [] p_insieme) {
for (int j=0; j<p_insieme.Length; j++){
Console.WriteLine("Elemento " +j+ ": " +p_insieme[j]);
}
}
} }

Binary file not shown.

Binary file not shown.

View File

@ -13,7 +13,7 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyCompanyAttribute("array_funzioni")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+bfb2cd07b3c887ad5533d70ff3cc447fa27774ea")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ff939d97fa270abd5a634214e7db6f3e7481adf2")]
[assembly: System.Reflection.AssemblyProductAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyProductAttribute("array_funzioni")]
[assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni")] [assembly: System.Reflection.AssemblyTitleAttribute("array_funzioni")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

View File

@ -1 +1 @@
38ec9ce1cf59c700d7b4cb3c9fc905206617faf2422b58c7ceecd01f36a7e025 8cca949421522396d9ae00c3428bc842f7acc7eb780f10322a3e902bac8b6ee6

Binary file not shown.

Binary file not shown.