public class 逢7跳过 {
public static void main(String[] args) {
over();
}
public static void over() {
for (int i = 1; i <= 100; i++) {
int ge = i % 10;
int shi = i / 10;
if (i % 7 == 0 || ge == 7 || shi == 7) {
System.out.println("过");
} else {
System.out.println(i);
}
}
}
}
JAVA:逢7跳过
最新推荐文章于 2023-11-12 10:21:10 发布
