3 solutions

  • 4
    @ 2025-7-10 10:25:34
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n;
    	cin>>n;
    	for(int i=1;i<=n;i++){
    		for(int c=1;c<=i;c++){
    		cout<<"*";
    	}cout<<endl;
    	}
    	return 0;
    }
    
    
    
    • 0
      @ 2025-12-11 21:18:27

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

      }

      • -5
        @ 2024-8-20 18:48:09

        #include<bits/stdc++.h> using namespace std; int main(){ int shuru,xh,xh1; xh=1; xh1=1; cin>>shuru; for(xh;xh<=shuru;xh++) { for(xh1=1;xh1<=xh;xh1++) { cout<<"*"; } cout<<endl; } return 0; }

        • 1

        Information

        ID
        34
        Time
        1000ms
        Memory
        256MiB
        Difficulty
        1
        Tags
        (None)
        # Submissions
        164
        Accepted
        80
        Uploaded By