package com.baidu.Demo;
public class ForDemo {
public static void main(String[] args) {
int x,y,z,num=0;
for(int i=1;i<999;i++){
x=i/100;
y=i/10%10;
z=i%10;
if(i==(xxx)+(yyy)+(zzz)) {
System.out.println(+i);
}
}
}
}
2024-02-16 22:28:52
package com.baidu.Demo;
public class ForDemo {
public static void main(String[] args) {
int x,y,z,num=0;
for(int i=1;i<999;i++){
x=i/100;
y=i/10%10;
z=i%10;
if(i==(xxx)+(yyy)+(zzz)) {
System.out.println(+i);
}
}
}
}
下一篇:Mac基础知识分享:Mac终端