Skip to content

Commit 1756b0c

Browse files
Add files via upload
1 parent 367c2ef commit 1756b0c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pattern3.cpp

Lines changed: 19 additions & 0 deletions
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)