Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. //Preparation certifcation java OCA(Chapitre 2)
  2. public class Question18{
  3. public static void main(String[] args){
  4. int count = 0;
  5. ROW_LOOP: for(int row = 1; row <=3; row++)
  6. for(int col = 1; col <=2 ; col++) {
  7. if(row * col % 2 == 0) continue ROW_LOOP;
  8. count++;
  9. }
  10. System.out.println(count);
  11. //end of ROW_LOOP
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement