import java.util.Calendar;
import java.util.Scanner;
public class Test {
public static void main(String[] args) {
int i=6,conut=0;
while(i<=100){
if(i%6!=0){
i++;
continue;
}
System.out.println("*********\t"+i+"\t**********");
conut=conut+1;
i++;
}
System.out.println("被6整除共: "+conut+" 个");
}
}
附图
![](https://video.ask-data.xyz/img.php?b=https://iknow-pic.cdn.bcebos.com/a8ec8a13632762d0d0069080a4ec08fa513dc6d0?x-bce-process=image%2Fresize%2Cm_lfit%2Cw_600%2Ch_800%2Climit_1%2Fquality%2Cq_85%2Fformat%2Cf_auto)