1 solutions

  • 0
    @ 2025-11-5 16:17:48

    C :

    #include<stdio.h>
    int main(){
    	printf("*****\n");
    	printf(" ***\n");
    	printf("  *\n");
    	printf(" ***\n");
    	printf("*****\n");
    	return 0;
    }
    

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    string n;
    int main()
    {
        //freopen(".in","r",stdin);
        //freopen(".out","w",stdout);
    	cout<<"*****"<<endl<<endl<<" ***"<<endl<<endl<<"  *"<<endl<<endl<<" ***"<<endl<<endl<<"*****";
        return 0;
    }
    

    Pascal :

     begin
       writeln('*****');
       writeln('***':4);
       writeln('*':3);
       writeln('***':4);
       writeln('*****');
     end.
    
    • 1

    Information

    ID
    17655
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By