#include<stdio.h>
#include<Windows.h>
void Show()
{
int i, j;
int num = 0;
for (i = 1; i <= 9; i++)
{
for (j = 1; j <= i; j++)
{
num = i * j;
printf("%d*%d=%d\t", j, i, num);// \t是水平制表符,也就是tab缩进
Sleep(300); //每隔300ms打印一次
}
printf("\n");
}
}
int main()
{
//乘法表
Show();//调用Shou函数
system("pause");
return 0;
}
//运行环境 vs2019
附图: