2 solutions

  • 1
    @ 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;
    }
    
    
    
    • -3
      @ 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
      128
      Accepted
      66
      Uploaded By