diff --git a/Program.cs b/Program.cs index 7b5ab10..5e22b12 100644 --- a/Program.cs +++ b/Program.cs @@ -72,14 +72,20 @@ class Program Console.Clear(); Console.Write("Inserire il dividendo: "); dividendo=Convert.ToInt32(Console.ReadLine()); - Console.Write("Inserire il divisore: "); - divisore=Convert.ToInt32(Console.ReadLine()); + do{ + Console.Write("Inserire il divisore: "); + divisore=Convert.ToInt32(Console.ReadLine()); + if (divisore==0){ + Console.WriteLine("ERRORE: il divisore deve essere diverso da 0"); + } + } + while(divisore==0); divisibile=VerificaDivisibile(dividendo,divisore); if (divisibile==true){ - Console.WriteLine("Il numero " +dividendo + " è divisibile per " +divisore); + Console.WriteLine("Il primo numero è multiplo del secondo"); } else{ - Console.WriteLine("Il numero " +dividendo + " non è divisibile per " +divisore); + Console.WriteLine("Il primo numero non è divisibile per il secondo"); } Console.WriteLine("Premere invio per continuare . . ."); Console.ReadLine(); diff --git a/bin/Debug/net9.0/miscellanea.dll b/bin/Debug/net9.0/miscellanea.dll index 494b6f0..0c81831 100644 Binary files a/bin/Debug/net9.0/miscellanea.dll and b/bin/Debug/net9.0/miscellanea.dll differ diff --git a/bin/Debug/net9.0/miscellanea.pdb b/bin/Debug/net9.0/miscellanea.pdb index 16ecabf..5a2a8e2 100644 Binary files a/bin/Debug/net9.0/miscellanea.pdb and b/bin/Debug/net9.0/miscellanea.pdb differ diff --git a/obj/Debug/net9.0/miscellanea.AssemblyInfo.cs b/obj/Debug/net9.0/miscellanea.AssemblyInfo.cs index 97d866b..6eb235d 100644 --- a/obj/Debug/net9.0/miscellanea.AssemblyInfo.cs +++ b/obj/Debug/net9.0/miscellanea.AssemblyInfo.cs @@ -13,7 +13,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("miscellanea")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+6ef3c92bfe1fa9cd10a726a95ec35692e9855fc5")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+220aec7cf20cec3f2926987140ddcac87c9681b6")] [assembly: System.Reflection.AssemblyProductAttribute("miscellanea")] [assembly: System.Reflection.AssemblyTitleAttribute("miscellanea")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/obj/Debug/net9.0/miscellanea.AssemblyInfoInputs.cache b/obj/Debug/net9.0/miscellanea.AssemblyInfoInputs.cache index a2e44ff..d41d969 100644 --- a/obj/Debug/net9.0/miscellanea.AssemblyInfoInputs.cache +++ b/obj/Debug/net9.0/miscellanea.AssemblyInfoInputs.cache @@ -1 +1 @@ -33feeae87dc5512a07eb6a72f4a4558f1e8099bdd9ccbacaa2fbb2ff25e3a368 +6bd7e1433996e99ef7f79695f1088081764237b93626276a553bcfeee7056742 diff --git a/obj/Debug/net9.0/miscellanea.dll b/obj/Debug/net9.0/miscellanea.dll index 494b6f0..0c81831 100644 Binary files a/obj/Debug/net9.0/miscellanea.dll and b/obj/Debug/net9.0/miscellanea.dll differ diff --git a/obj/Debug/net9.0/miscellanea.pdb b/obj/Debug/net9.0/miscellanea.pdb index 16ecabf..5a2a8e2 100644 Binary files a/obj/Debug/net9.0/miscellanea.pdb and b/obj/Debug/net9.0/miscellanea.pdb differ diff --git a/obj/Debug/net9.0/ref/miscellanea.dll b/obj/Debug/net9.0/ref/miscellanea.dll index 917682f..929485d 100644 Binary files a/obj/Debug/net9.0/ref/miscellanea.dll and b/obj/Debug/net9.0/ref/miscellanea.dll differ diff --git a/obj/Debug/net9.0/refint/miscellanea.dll b/obj/Debug/net9.0/refint/miscellanea.dll index 917682f..929485d 100644 Binary files a/obj/Debug/net9.0/refint/miscellanea.dll and b/obj/Debug/net9.0/refint/miscellanea.dll differ