public static void main(String[] args) { int i = 3; while (i <= 100) { if (i % 3 == 0) { System.out.println(i + ":" + "三"); if (i + 1 % 5 != 0) { i = i + 2; continue; } i++; continue; } if (i % 5 == 0) { if (i % 3 == 0) { System.out.println(i + ":" + "三五"); i = i + 3; continue; } System.out.println(i + ":" + "五"); } i++; } }