1 solutions

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

    C :

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

    C++ :

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

    Pascal :

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

    Information

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