commit 20cb6a8ea93e79daaa2b618b38110153d5b528ce Author: haoxuan Date: Mon Feb 2 11:24:09 2026 -0500 上传文件至「060201」 99乘法表 diff --git a/060201/九九乘法表.cpp b/060201/九九乘法表.cpp new file mode 100644 index 0000000..12f3ed1 --- /dev/null +++ b/060201/九九乘法表.cpp @@ -0,0 +1,18 @@ +#include +#include // ڶ +using namespace std; + +int main() { + // ѭ (1-9) + for (int i = 1; i <= 9; ++i) { + // ڲѭÿʾ + for (int j = 1; j <= i; ++j) { + // ʽj * i = + // ʹ std::setw(2) ȷռλ + cout << j << " * " << i << " = " << setw(2) << i * j << " "; + } + // ÿн + cout << endl; + } + return 0; +}