提交时间:2024-01-24 17:23:35

运行 ID: 126897

#include<bits/stdc++.h> using namespace std; int main(){ for (long long i = 1; i <= 9; i++) { for (long long j = 1; j <= i; j++) { long long ans = i*j; cout << j << "*" << i << "=" << ans; if (ans < 10) { cout << " "; } else { cout << " "; } } cout << endl; } return 0; }