输出怎么改(跪求)
查看原帖
输出怎么改(跪求)
1659453
hbyzl楼主2025/2/7 20:29
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int c=65;
	for(int i=1;i<=n;i++)
	{
		cout<<(char)(c+i-1);
		for(int j=1;j<=n-1;j++)
		{
			cout<<(char)(c+1);
			c++;
			if(c==106)
			{
				c=65;
			}	
		}
		cout<<endl; 
	}
	return 0;
}
2025/2/7 20:29
加载中...