1
The following validation checks whether an entry is a positive number.
if (Q[i] < 0) {
Console.WriteLine("Digite um número positivo!");
goto Start;
}
Just like this check, if nothing was typed, the program would just go back to "Start" without an error.
That is, how do I check if the entry is empty as the user has not typed anything?
Deal with a variable if the data entry is NULL or not. string text; if (text == NULL){ Console.Writeline("Nothing typed"); } Else{ Console.Writeline("Has been typed : ", text); ;}
– Igor Carreiro