Code attached.
class Test3{ public static void main(String[]args){ //输出九九乘法表 for(int m=1;m<=9;m++){ for(int n=1;n<=m;n++){ System.out.print(n+"*"+m+" "); } System.out.println(); } } }
For more related articles on how to use java to output the multiplication table, please pay attention to the PHP Chinese website!