public class demo10{
public static void main(String[] args) {
chengfa(6);//n=6时
}
public static void chengfa(int n){
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
System.out.print(j+"*"+i+"="+j*i+"\t");
}
System.out.println();
}
}
public static void main(String[] args) {
chengfa(6);//n=6时
}
public static void chengfa(int n){
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++){
System.out.print(j+"*"+i+"="+j*i+"\t");
}
System.out.println();
}
}