This is my main that already includes a flag to leave the program (follow):
static void Main(string[] args) {
string[] nombre;
int opcion, tope = 0, cantidad;
bool seguir = true;
Console.WriteLine("Ingrese la cantidad: ");
cantidad = Convert.ToInt32(Console.ReadLine());
int[] vector = new int[cantidad];
nombre = new string[cantidad];
int[, ] matriz = new int[cantidad, 5];
while (seguir) {
Console.WriteLine("\t\t1-Reset");
Console.WriteLine("\t\t2-Salir");
opcion = Convert.ToInt32(Console.ReadLine());
switch (opcion) {
case1:
string reset = Console.ReadLine();
if (reset == "SI") {
//CODIGO
}
Console.ReadLine();
break;
case2;
seguir = false;
break;
What I'm looking for is that when I write yes, I go back to the beginning to ask for quantity and start from 0 (reset the matrix), and if it's not, go back to the normal menu, it needs to be with a while or flag, I can not use a goto