/* ************************************
程序名:利用循环结构制作九九乘法表
作者:小荞
编辑时间:2020.4.10
程序功能:制作九九乘法表
*************************************** */
public class My{
public static void main(String[] args){
for(int a=1;a<=9;a++){
for(int b=1;b<=a;b++){
System.out.print(a+"*"+b+"="+a*b+"\t");
}
System.out.println();//不输出直接换行
}
}
}
运行结果如下