r如果我要打印乘法表,怎么改
class Multiplication_table { public static void main(String[] args) { for(int i=1;i<=9;i++) { for(int j=1;j<=i;j++) { System.out.print(i+"*"+j+"="+(i*j)+'\t'); } System.out.print('\n'); } } }
import java.io.*;
public class jiujiu {
public static void main(String[] args){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=i;j++)
{
System.out.print(j+"*"+i+"="+j*i+"\t");
}
System.out.println();
}
}
}