#include<stdio.h>
int main()
{
int i = 0;
for (i = 1; i <= 9; i++)
{
int j = 1;
for (j = 1; j <= i; j++)
{
printf("%d*%d=%-3d",i,j,i*j );
}
printf("\n");
}
}
学习第19天(打印乘法口诀表)
最新推荐文章于 2024-09-09 17:46:50 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
#include<stdio.h>
int main()
{
int i = 0;
for (i = 1; i <= 9; i++)
{
int j = 1;
for (j = 1; j <= i; j++)
{
printf("%d*%d=%-3d",i,j,i*j );
}
printf("\n");
}
}