展开全部
因为每行的字符数差没有规律,只能用笨方法e5a48de588b662616964757a686964616f31333330343935一个个处理了:
public class Demo01 {
public void Multiplication(){
for (int i = 1; i
if(i==2){
System.out.print(" ") ;
}else if(i==3){
System.out.print(" ") ;
}else if(i==4){
System.out.print("\t ") ;
}else if(i==5){
System.out.print("\t\t ") ;
}else if(i==6){
System.out.print("\t\t\t ") ;
}else if(i==7){
System.out.print("\t\t\t\t ") ;
}else if(i==8){
System.out.print("\t\t\t\t\t") ;
}else if(i==9) {
System.out.print("\t\t\t\t\t ") ;
}
for (int j = i; j
System.out.print(i+"*"+j+"="+i*j+" ");
}
System.out.println();//换行
}
}
public static void main(String[] args) {
Demo01 d = new Demo01() ;
d.Multiplication() ;
}
}
===========================================================