本质就是嵌套循环
#include<iostream>
using namespace std;
int main()
{
//cout << "The size of int is :" << sizeof(int) << endl;
//打印乘法口诀表
for(int i =1;i<10;++i)
{
for (int j = 1; j <= i; ++j)
cout << char(i + '0') << " * " << char(j + '0') << " = " << i*j << ' ';
cout << endl;
}
system("pause");
return 0;
}