c++打印九九乘法表
时间: 2023-11-03 21:58:57 浏览: 207
c++九九乘法表打印
#include <iostream>
using namespace std;
int main() {
for (int i = 1; i <= 9; i++) {
for (int j = 1; j <= i; j++) {
int x = i * j;
cout << j << "*" << i << "=" << x << " ";
}
cout << endl;
}
return 0;
}
阅读全文