题解
2023-09-07 13:31:25
发布于:广东
6阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
const char x='x';
int main()
{
int n;
cin >> n;
if (n==0)
{
cout << "Error";
return 0;
}
for (int i=1;i<=n;i++)
{
for (int j=1;j<=n;j++)
cout << i << x << j << "=" << setw(2) << i*j << ' ';
cout << endl;
}
return 0;
}
这里空空如也
有帮助,赞一个