DESKTOP-I6FA4UK_20200907-刘光超
问题
/*
* 【程序54】
*1~69逢7就过,并输出结果,每行输出六个数。
*/
public class A54 {
public void m() {
int a = 0;
for(int x=1;x<81;x++) {
if(!(x/10==7||x%10/7==1)) {
System.out.print(x+" ");
a++;
if(a%6==0) {
a=0;
System.out.println();
}
}
}
}
public static void main(String[] args) {
A54 a = new A54();
a.m();
}
}
吐槽
倒计时23天 。。。。。 无力吐槽。。。。。。
近期评论