wanghaichen • 3个月前
using namespace std; int main() {
ios::sync_with_stdio(false);
cin.tie(0);
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++)
cout<<i<<"*"<<j<<"="<<i*j<<"\n";
}
return 0;
}
评论:
using namespace std; int main(){
int n;
cin>>n;
for(int i=1;i<=n;i++){
for(int j=1;j<=i;j++)
cout<<j<<"*"<<i<<"="<<j*i<<" ";
cout<<endl;