We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec6057 commit ff69822Copy full SHA for ff69822
patterns.py
@@ -153,3 +153,26 @@
153
else:
154
print(' ', end = '')
155
print()
156
+
157
+"""
158
+* *
159
+ * *
160
161
162
+ *
163
164
165
166
167
168
+rows = int(input("Enter X Pattern Odd Rows = "))
169
170
+print("X Star Pattern")
171
172
+for i in range(0, rows):
173
+ for j in range(0, rows):
174
+ if(i == j or j == rows - 1 - i):
175
+ print('*', end = '')
176
+ else:
177
+ print(' ', end = '')
178
+ print()
0 commit comments