Skip to content

Commit 8df0a7c

Browse files
authoredOct 10, 2022
RushiHacker4
1 parent 4debaa3 commit 8df0a7c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎pattern2.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=n;i>0;i--){
14+
for(int j=0;j<n;j++){
15+
cout<<"*";
16+
}
17+
cout<<endl;
18+
}
19+
}

0 commit comments

Comments
 (0)
Please sign in to comment.