Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Preparation certifcation java OCA(Chapitre 2)
- public class Question18{
- public static void main(String[] args){
- int count = 0;
- ROW_LOOP: for(int row = 1; row <=3; row++)
- for(int col = 1; col <=2 ; col++) {
- if(row * col % 2 == 0) continue ROW_LOOP;
- count++;
- }
- System.out.println(count);
- //end of ROW_LOOP
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement