1 solutions

  • 0
    @ 2025-10-31 11:38:08
    #include<iostream>
    using namespace std;
    int main(){
        char a;
        cin>>a;
        int b = 4;
        int c = 4;
        for(int i = 1;i<=3;i++){
            for(int x = 1;x<=5;x++){
                if(i+x>=b&&i+x<=c){
                    cout<<a;
                }else{
                    cout<<" ";
                }
            }
            cout<<endl;
            c = c+2;
        }
        return 0;
    }
    
    • 1

    Information

    ID
    460
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    3
    Tags
    # Submissions
    154
    Accepted
    80
    Uploaded By