import java.util.Scanner;//导包
class Jiujiu
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);//创建对象
System.out.println("请输入数值");
int n = sc.nextInt();//调用方法
for(int a =1;a<=n;a++){
for(int b =1;b<=a;b++){
System.out.print(b+"*"+a+"="+b*a+"\t");}
System.out.println();}
}
} |