1 solutions

  • 0
    @ 2025-11-5 16:21:22

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int n;
    int main()
    {
    	cout<<"     *"<<endl;
    	cout<<"    ***"<<endl;
    	cout<<"   *****"<<endl;
    	cout<<"  *******"<<endl;
    	cout<<" *********"<<endl;
    	cout<<"    ***"<<endl;
    	cout<<"    ***"<<endl;
    	cout<<"    ***"<<endl;
    	cout<<"    ***"<<endl;
    	return 0;
    }
    

    Pascal :

    begin
      writeln('     *');
      writeln('    ***');
      writeln('   *****');
      writeln('  *******');
      writeln(' *********');
      writeln('    ***');
      writeln('    ***');
      writeln('    ***');
      writeln('    ***');
    end.
    
    • 1

    Information

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