You don't need goto to leave the nested for loop and save off those variables. Merely, you want to break out of ...
stackoverflow.com