#include<stdio.h>
int prit_Mul_Table(int k)
{
int i = 0;
int j = 0;
for (i = 1; i <= k; i++)
{
for (j = 1; j <= i; j++)
{
printf(" %d*%d=%2d", i, j, i*j);
}
printf("\n");
}
}
int main()
{
int n;
printf("请输入需要打印的行数:");
scanf("%d", &n);
prit_Mul_Table(n);
system("pause");
return 0;
}
转载于:https://blog.51cto.com/haipi/1708650