qfedu-basic-level/day5/chengfa99.cpp

19 lines
308 B
C++
Raw Permalink Normal View History

2023-06-16 16:01:52 +08:00
// 打印九九乘法表
#include <iostream>
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;
}