怎样实现打印出三角形的乘法表
package helloword;
public class multiply99 {
public static void main(String[] args){
int i,j,sum;
for(i=1;i<10;i++){
for(j=1;j<=i;j++){
sum=i*j;
System.out.print(j+"*"+i+"="+sum+" ");
}
System.out.println();
}
}
}
public class HelloWorld{
public static void main(String[] args){
for(int i = 1;i<=9; i++){
for(int j = 0; j <=i;j++ ){
System.out.println(i*j=i*j);
}
}
}
}