top1编程
← 返回题目
题解

【入门】字母直角2

1 条题解

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