top1编程
← 返回题目
题解

【入门】字母矩形2

1 条题解

  • 0
    @ 2026-7-29 0:18:43
    #include<bits/stdc++.h>
    using namespace std;
    
    int main(){
    	int n;
    	cin>>n;
    	for(int i=1;i<=n;i++){
    		for(int j=1;j<=n;j++){
    			cout<<char('A'+j-1);
    		}
    		cout<<endl;
    	} 
    	return 0;
    }
    
    • 1