From 74f9c23f9ecd1bf6b3a8de3e8e01e84d0ac23122 Mon Sep 17 00:00:00 2001 From: flykhan Date: Fri, 16 Jun 2023 16:01:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E4=B9=9D=E4=B9=9D=E4=B9=98?= =?UTF-8?q?=E6=B3=95=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day5/chengfa99.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 day5/chengfa99.cpp diff --git a/day5/chengfa99.cpp b/day5/chengfa99.cpp new file mode 100644 index 0000000..7ac80f8 --- /dev/null +++ b/day5/chengfa99.cpp @@ -0,0 +1,19 @@ +// 打印九九乘法表 +#include + +using namespace std; + +int main() +{ + for (int i = 1; i < 10; i++) + { + for (int j = 1; j < 10; j++) + { + if (j <= i) + cout << i << "*" << j << "=" << i * j << "\t"; + } + cout << endl; + } + + return 0; +} \ No newline at end of file