public static void printTable(){
int [] odd = {1,3,5,7,9};
int [] odds = new int[5*5];
int len = odd.length;
int lens = odds.length;
int tmp = 0;
//将所有的数字组合存在odds数组中
for(int i=0; i<len; i++) {
int x=odd[i]; //x-代表十位,y-代表个位
for(int j=0; j<len; j++) {
int y = odd[j];
odds[tmp++] = x*10+y;
}
}
//计算结果并输出
for(int i=0; i<lens; i++) {
int m = odds[i];
for(int j=0; j<lens; j++) {
int n = odds[j];
int sum = m*n;
if(100<sum&&sum<=999&&sum/100%2==1&&sum/10%2==1&&sum%2==1)
System.out.print(m +"x"+ n +"="+ sum +"\t");
}
System.out.println();
}
}
public static void main(String[] args) {
printTable();
}