diff --git a/Program.cs b/Program.cs index 4bb4454..4c4f5ad 100644 --- a/Program.cs +++ b/Program.cs @@ -22,8 +22,16 @@ class Program case 0: break; case 1: - Console.Write("Numeri da inserire: "); - i = Convert.ToInt32(Console.ReadLine()); + do + { + Console.Write("Numeri da inserire: "); + i = Convert.ToInt32(Console.ReadLine()); + if (i <= 0) + { + Console.WriteLine("Opzione non valida"); + } + } + while (i <= 0); for(; i > 0; i--){ Console.Write("Inserire un numero: "); numero = Convert.ToInt32(Console.ReadLine()); diff --git a/bin/Debug/net9.0/ripasso1.dll b/bin/Debug/net9.0/ripasso1.dll index 3ccc766..578013a 100644 Binary files a/bin/Debug/net9.0/ripasso1.dll and b/bin/Debug/net9.0/ripasso1.dll differ diff --git a/bin/Debug/net9.0/ripasso1.pdb b/bin/Debug/net9.0/ripasso1.pdb index ad574b7..218adb1 100644 Binary files a/bin/Debug/net9.0/ripasso1.pdb and b/bin/Debug/net9.0/ripasso1.pdb differ diff --git a/obj/Debug/net9.0/ref/ripasso1.dll b/obj/Debug/net9.0/ref/ripasso1.dll index 45ba7f3..6fbb18d 100644 Binary files a/obj/Debug/net9.0/ref/ripasso1.dll and b/obj/Debug/net9.0/ref/ripasso1.dll differ diff --git a/obj/Debug/net9.0/refint/ripasso1.dll b/obj/Debug/net9.0/refint/ripasso1.dll index 45ba7f3..6fbb18d 100644 Binary files a/obj/Debug/net9.0/refint/ripasso1.dll and b/obj/Debug/net9.0/refint/ripasso1.dll differ diff --git a/obj/Debug/net9.0/ripasso1.AssemblyInfo.cs b/obj/Debug/net9.0/ripasso1.AssemblyInfo.cs index 9413c3a..56944e5 100644 --- a/obj/Debug/net9.0/ripasso1.AssemblyInfo.cs +++ b/obj/Debug/net9.0/ripasso1.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("ripasso1")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+88a3a81dc5c585f0e44e1de67a04fcc0176c2248")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+523bb24b6cdf5fe528dfd83a3e99519698c6b70f")] [assembly: System.Reflection.AssemblyProductAttribute("ripasso1")] [assembly: System.Reflection.AssemblyTitleAttribute("ripasso1")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net9.0/ripasso1.AssemblyInfoInputs.cache b/obj/Debug/net9.0/ripasso1.AssemblyInfoInputs.cache index be6d510..5717ede 100644 --- a/obj/Debug/net9.0/ripasso1.AssemblyInfoInputs.cache +++ b/obj/Debug/net9.0/ripasso1.AssemblyInfoInputs.cache @@ -1 +1 @@ -df729b33bee225d62533bc9464825af2a889790321bc9d5d69fed3afd170fe83 +9ae844eabdb834620e40c9ba6eb3b842d15c778fa257263021e9ad9254162faf diff --git a/obj/Debug/net9.0/ripasso1.dll b/obj/Debug/net9.0/ripasso1.dll index 3ccc766..578013a 100644 Binary files a/obj/Debug/net9.0/ripasso1.dll and b/obj/Debug/net9.0/ripasso1.dll differ diff --git a/obj/Debug/net9.0/ripasso1.pdb b/obj/Debug/net9.0/ripasso1.pdb index ad574b7..218adb1 100644 Binary files a/obj/Debug/net9.0/ripasso1.pdb and b/obj/Debug/net9.0/ripasso1.pdb differ