Skip to content

Commit 47ac7e3

Browse files
authored
Add files via upload
SPOJ - PATTERN1 - Simple Pattern !!
1 parent 439c01c commit 47ac7e3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

3.cpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#include<bits/stdc++.h>
2+
using namespace std;
3+
int main(){
4+
int n;
5+
cin >> n;
6+
for (int i = 1 ; i <= n ; i++){
7+
char b = i + 64;
8+
cout << b;
9+
for (int j = i+1 ; j <= n ; j++){
10+
char a = j + 64;
11+
cout << a;
12+
}
13+
cout << endl;
14+
}
15+
return 0;
16+
}

0 commit comments

Comments
 (0)