#include
using namespace std;
int main()
{
cout << " " << "|" << " ";
for(int b = 1;b <= 9;b++)
{
cout << b << " ";
}
cout << endl;
for(int a = 1;a <=30;a++)
{
cout << "-";
}
cout << endl;
//输出方形乘法口诀表主要部分
for(int i = 1; i <= 9;i++)
{
cout << i << " " << "|"<<" ";//输出行的序号
for(int j = 1;j <= 9;j++)
{
cout << i * j << " ";
}
cout << endl;
}
}