嗯。。。对。。我不知道
2026-08-15 19:02:16
发布于:广东
2阅读
0回复
0点赞
什么等差数列我不知道,我只知道看样例可以
找出规律:行数*列数+” “
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,m;
cin>>n>>m;
for(int i=1;i<=n;i++){
for(int j=1;j<=m;j++){
cout<<i*j<<" "; //感觉就这一步重要一点
}
cout<<endl;
}
return 0;
}
这里空空如也








有帮助,赞一个