#include using namespace std; int main() { for( int j1=0 ; j1< 5 ; j1++ ) { //outer loops only run if j1 is 0 if ( j1 == 1 ) break ; for( int i1=0 ; i1< 5 ; i1++ ) { //has printed 0 1 2 by this time if( i1 == 3 ) break ; cout << i1 << endl ; } } return 0 ; } 0 1 2 printed