#include <iostream>
#include <algorithm>
using namespace std;
int main(){
    int n=0,m=0,c;
    cin>>n;cin>>m;
    char a[28][28];
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            c=abs(i-j);
            a[i][j]='A'+c;
        }
    }
    
    for(int i=0;i<n;i++){
        for(int j=0;j<m;j++){
            cout<<a[i][j];
        }
        cout<<endl;
    }
}

 

c++基础_字母图形

 

相关文章:

  • 2021-11-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
猜你喜欢
  • 2021-11-14
  • 2021-05-05
相关资源
相似解决方案