Skip to content

Commit 367c2ef

Browse files
Add files via upload
1 parent b69cb45 commit 367c2ef

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

pattern1.cpp

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

0 commit comments

Comments
 (0)