<div class="blockcode"><blockquote>
public class FengSeven {
/*
* 3.100以内 逢7的数 去掉
*/
public static void main(String[] args) {
int count=0;
for (int i = 0; i < 100; i++) {
int ge = i%10;
int shi = i/10;
if (ge ==7 || shi==7) {
continue;
}else{
System.out.print(i+" ");
count++;
if(count == 10){
System.out.println("\t");
count = 0;
}
}
}
}
}
</blockquote></div><br /> |
|