Skip to content

Commit f96da41

Browse files
authored
Add files via upload
1 parent 406c64f commit f96da41

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Floyds_pattern.cpp

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

0 commit comments

Comments
 (0)