#include"stdio.h"
#include"stdlib.h"
#include"string.h"
void print(int n)
{int i = 0;
int j = 0;
for (i = 1; i <= n; i++)
{
for (j = 1; j <= i; j++)
{
printf("%d*%d=%3d",i ,j ,i*j);
}
printf("\n");
}
}
int main()
{
int line = 0;
printf("请输入行数:");
scanf("%d",&line);
print(line);
system("pause");
return 0;
}