goto
int j = 8;
link1:
j--;
if (j <= 5) goto link1;
switch (n)
{
case 1:
cost += 1;
break;
case 2:
cost += 2;
goto case 1;
case 3:
cost += 3;
goto case 1;
default:
Console.WriteLine("Invalid selection.");
break;
}
int j = 8;
link1:
j--;
if (j <= 5) goto link1;
switch (n)
{
case 1:
cost += 1;
break;
case 2:
cost += 2;
goto case 1;
case 3:
cost += 3;
goto case 1;
default:
Console.WriteLine("Invalid selection.");
break;
}