J J J J J J J J J J
I I I I I I I I I I
H H H H H H H H H H
G G G G G G G G G G
F F F F F F F F F F
E E E E E E E E E E
D D D D D D D D D D
C C C C C C C C C C
B B B B B B B B B B
A A A A A A A A A A
Code:
1
2
3
4
5 | n=int(input("Enter the number of rows: ")) for j in range(1,n+1): for i in range(1,n+1): print(chr(65+n-j),end=" ") print() |
******************************************************
******************************************************
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
J I H G F E D C B A
Code:
1 2 3 4 5 | n=int(input("Enter the number of rows: ")) for j in range(1,n+1): for i in range(1,n+1): print(chr(65+n-i),end=" ") print() |
No comments:
Post a Comment