int state; for( int y = 0; y < 10; ++y ) { for( int x = 0; x < 10; ++x ) { if( func() ) { state = 30; // for문을 } } } <!--Created using ToHtml.com on 2019-01-29 16:12:12 UTC -->