Skip to content

Commit e18a609

Browse files
authored
Merge pull request #554 from rushithakare766/main
Add files via upload
2 parents 8cda2d4 + 1756b0c commit e18a609

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pattern3.cpp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*Pattern
2+
*****
3+
****
4+
***
5+
**
6+
*
7+
*/
8+
#include<iostream>
9+
using namespace std;
10+
int main(){
11+
int n;
12+
cin>>n;
13+
for(int i=0;i<n;i++){
14+
for(int j=0;j<=i;j++){
15+
cout<<"*"<<" ";
16+
}
17+
cout<<endl;
18+
}
19+
}

0 commit comments

Comments
 (0)