import java.util.ArrayList;
public class test8 {
public static void main(String[] args) {
StringBuffer sb = new StringBuffer();
sb.append("");
for(int i = 1 ; i <= 100 ; i++){
if(i%7 == 0 || (""+i).contains("7")){
sb.append("过"+" ");
}else {
sb.append(i+" ");
}
}
System.out.println(sb);
}
} |
|