打印九九乘法表
package test.operator;
public class forDemo03 {
public static void main(String[] args) {
//打印九九乘法表
int i;
int j;
/** for(i=1;i<=9;i++){
for(j=i;j<=9;j++){
System.out.println(i + "*" + j +"=" + (i*j));
}
System.out.println("\t");
}
*/
for(i=1;i<=9;i++){
for(j=1;j<=i;j++){
System.out.print(j + "*" + i +"=" + (j*i) + "\t");
if(j == i){
System.out.println();
}
}
}
}
}