题解
2025-05-05 18:50:45
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a;
if(a<=0){
cout<<"Error";
}
for(int i=1;i<=a;i++){
for(int j=1;j<=a;j++){
b=i*j;
if(b>=10&&b<=99){
cout<<i<<"x"<<j<<"="<<b<<" ";
}
else{
cout<<i<<"x"<<j<<"= "<<b<<" ";
}
}
cout<<endl;
}
return 0;
}
这里空空如也
有帮助,赞一个