public class Math1 {
//九九乘法表
public static void main(String[] args) {
//需要输出九行
for (int i = 1; i <= 9; i++) {
//输出从1到本身的乘法表达式
for (int j = 1; j <= i ; j++) {
System.out.print(j+"*"+i+"="+i*j+"\t");
}
//换行
System.out.println("");
}
}
}
标签:九九乘法,String,int,void,args,public
From: https://www.cnblogs.com/cyyyds/p/16926041.html