#include <stdio.h>
void asd(int a)
{
int b = 1;
int c = 1;
for (b = 1; b <= a; b++)
{
for (c = 1; c <= b; c++)
{
printf("%d*%d=%2d ", c, b, c * b);
}
printf("\n");
}
}
int main()
{
int a=0;
printf("请输入一个数字:");
scanf("%d", &a);
asd(a);
return 0;
}
C语言编写一个函数实现自定义的乘法口诀表
最新推荐文章于 2022-11-09 09:33:13 发布