qfedu-basic-level/day5/chengfa99.cpp

19 lines
308 B
C++

// 打印九九乘法表
#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;
}