A Java Program to show the use of the Continue Statement.
publicclass JAVA_031 { publicstaticvoid main(String[] args) { int limit=20; int sum=0; for(int i=1;i<=limit;i++) { if((i%3)==0) continue; sum+=i; } System.out.println("Sum of first 20 integers with skipped integers divisible by 3 = " + sum); } }