//输出任意乘法表
package com.test1;
public class Demo1_3 {
public static void main(String[] args) {
// TODO Auto-generated method stub
set(9);
}
//函数功能
public static void set(int n)
{
for(int x=1;x<=n;x++) //控制行
{
for(int y=1;y<=x;y++) //控制列
{
System.out.print(x+"*"+y+"="+x*y+"\t");
}
System.out.println(" ");
}
}
}