A Java Program to show the use of Labeled Continue Statement.
publicclass JAVA_032 { publicstaticvoid main(String[] args) { long limit=20; long factorial=1; OuterLoop: for(int i=1;i<=limit;i++) { factorial=1; for(int j=2;j<=i;j++) { if((i%2)==0) continue OuterLoop; factorial*=j; } System.out.println("Factorial of " + i + " = " + i + "! = " + factorial); } } }