乘法口诀表利用嵌套循环语句就可以实现
下面是一个实例
#include<iostream>
using namespace std;
int main() {
for (int i = 1; i < 10; i++)
{
for (int j = 1; j <= i; j++)
{
cout << j << " * " << i << " = " << i * j << " ";
}
cout << endl;
}
system("pause");
return 0;
}
输出结果为

注意其中的逻辑思维

















![[ARC105E] Keep Graph Disconnected题解](https://i-blog.csdnimg.cn/direct/9cdc3fb031af4399944008bc7435defe.png#pic_center)

