#include<stdio.h>
int main()
{
int i = 0;
int j = 0;
int n =0 ;
printf("输入数字:");
scanf("%d",&n);
printf("\n");
for (i = 1; i <= n; i++)
{
for (j = 1; j <= i; j++) //此处为梯形状,若要正方形,则j<=n
printf("%d*%d=%d\t",j,i,j * i);
printf("\n");
}
return 0;
}