soln3_3.cpp
来自「Visual C++ 2005的源代码」· C++ 代码 · 共 21 行
CPP
21 行
// Soln3_3.cpp
#include <iostream>
#include <iomanip>
using std::cout;
using std::setw;
int main()
{
cout << " 2 3 4 5 6 7 8 9 10 11 12\n";
cout << "------------------------------------------------------------------------\n";
for (int i=1; i<13; i++) // rows
{
for (int j=2; j<13; j++) // columns
{
cout << setw(6) << j*i;
}
cout << '\n';
}
return 0;
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?