Controllo extra opzione 1

This commit is contained in:
La Programmatrice Verde 2025-01-10 08:51:04 +01:00
parent 523bb24b6c
commit e1c4d5e33e
9 changed files with 12 additions and 4 deletions

View File

@ -22,8 +22,16 @@ class Program
case 0:
break;
case 1:
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());

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -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")]

View File

@ -1 +1 @@
df729b33bee225d62533bc9464825af2a889790321bc9d5d69fed3afd170fe83
9ae844eabdb834620e40c9ba6eb3b842d15c778fa257263021e9ad9254162faf

Binary file not shown.

Binary file not shown.