Skip to content

Commit c63fea1

Browse files
committed
cm ps pyramidOfNumbers
1 parent 03106e9 commit c63fea1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
int main ()
4+
{
5+
int t,i;
6+
cin>>t;
7+
for(i=1;i<=t;i++){
8+
int j,n;
9+
cin>>n;
10+
printf("Case %d:\n",i);
11+
for(j=1;j<=n;j++){
12+
int k;
13+
for(k=1;k<=j;k++){
14+
cout<<k;
15+
}
16+
cout<<endl;
17+
}
18+
19+
}
20+
21+
return 0;
22+
}

0 commit comments

Comments
 (0)