Don't use goto, it's generally bad form. Break is sometimes acceptable but goto should be avoided unless absolutely necessary. For example in this case you should just use break and some conditions to get past the other loops. getting accustomed to using goto will get you into some confounding prog situations.