From 20cb6a8ea93e79daaa2b618b38110153d5b528ce Mon Sep 17 00:00:00 2001 From: haoxuan Date: Mon, 2 Feb 2026 11:24:09 -0500 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=E3=80=8C060201=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 99乘法表 --- 060201/九九乘法表.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 060201/九九乘法表.cpp 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; +}