Rispetta la traccia(?)
This commit is contained in:
parent
a42bda57e1
commit
9764e5f051
@ -87,8 +87,6 @@ class Program
|
||||
Console.Clear();
|
||||
break;
|
||||
case 3:
|
||||
Console.WriteLine("Debug nonsvolto1: " +nonsvolto1);
|
||||
Console.WriteLine("Debug nonsvolto2: " +nonsvolto2);
|
||||
Console.Clear();
|
||||
//condizione per verificare se è stata usata la voce 1
|
||||
for(int i=0; i<array1.Length; i++){
|
||||
@ -96,7 +94,6 @@ class Program
|
||||
zeri++;
|
||||
}
|
||||
}
|
||||
Console.WriteLine("Debug zeri: " +zeri);
|
||||
|
||||
if(zeri==array1.Length){//se tutte le celle sono zero allora la voce 1 non è stata usata
|
||||
nonsvolto1=true;
|
||||
@ -104,7 +101,6 @@ class Program
|
||||
else{
|
||||
nonsvolto1=false;
|
||||
}
|
||||
Console.WriteLine("Debug nonsvolto1: " +nonsvolto1);
|
||||
|
||||
zeri=0;//reset della variabile zeri
|
||||
|
||||
@ -121,8 +117,6 @@ class Program
|
||||
else{
|
||||
nonsvolto2=false;
|
||||
}
|
||||
Console.WriteLine("Debug nonsvolto2: " +nonsvolto2);
|
||||
Console.WriteLine("Debug zeri: " +zeri);
|
||||
zeri=0;//reset della variabile zeri
|
||||
|
||||
switch((nonsvolto1, nonsvolto2)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user