提交时间:2024-11-09 22:21:26
运行 ID: 56228
#include <iostream> using namespace std; int main() { int i; int j; int n; int sum; cin >> n; for (i=1; i<=n; i ++) { for (j=1; j<=i; j ++) { cout << j << "*" << i << "=" << i*j << " "; sum += i * j; } cout << endl; } return 0; }