用for循环求0到100的对称数。
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
用for循环求0到100的对称数。
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
public class ForExercise4 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
for(int i=1;i<=100;i++){
int a=i%10;个位
int b=i/10;十位
if(a==b){
System.out.println(i);
}
}
}
}