C++首A
2024-10-07 19:49:09
发布于:云南
13阅读
0回复
0点赞
太坑了,我看了10遍python代码才看出来什么不对劲
#include<bits/stdc++.h>
using namespace std;
int main(){
for(int i = 1;i <= 9;i++){
for(int j = 1;j <= i;j++){
if(j == 1 || j == 2 && i == 2 || j == 2 && i == 3 || j == 2 && i == 4 || j == 3 && i == 3) cout << j << "*" << i << "= " << i * j << " ";
else cout << j << "*" << i << "=" << i * j << " ";
}
cout << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个