We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5089ee3 + 226939b commit 3e19df9Copy full SHA for 3e19df9
1 file changed
Python/program-5/program.py
@@ -0,0 +1,10 @@
1
+rows = int(input("Enter Same Number Rows & Columns Square Pattern Rows = "))
2
+
3
+print("===Printing Same Number in Rows and Columns of a Square Pattern===")
4
5
+for i in range(1, rows + 1):
6
+ for j in range(i, rows + 1):
7
+ print(j, end = ' ')
8
+ for k in range(1, i):
9
+ print(k, end = ' ')
10
+ print()
0 commit comments