public class ChengDemo {
public static void main(String args[]){
for(int k = 1;k<=9;k++){ //外循环用于控制行数
for(int j = 1;j<=k;j++){
System.out.print(j+"*"+k+"="+(j*k)+" "); //" "为制表符
}
System.out.println(); //换行
}
}
}
public class ChengDemo {
public static void main(String args[]){
for(int k = 1;k<=9;k++){ //外循环用于控制行数
for(int j = 1;j<=k;j++){
System.out.print(j+"*"+k+"="+(j*k)+" "); //" "为制表符
}
System.out.println(); //换行
}
}
}