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 1e60d99 commit 50d8c32Copy full SHA for 50d8c32
Numeric Patterns/numericpattern232.py
@@ -0,0 +1,12 @@
1
+for i in range(1,6):
2
+ for j in range(1,6):
3
+ if i==int(5/2)+1 or j==int(5/2)+1:
4
+ if abs(i-j)==2:
5
+ print(1,end=' ')
6
+ elif abs(i-j)==1:
7
+ print(2,end=' ')
8
+ else:
9
+ print(3,end=' ')
10
11
+ print(" ",end=' ')
12
+ print(end='\n')
Numeric Patterns/numericpattern233.py
@@ -0,0 +1,7 @@
+ print(abs(i-j),end=' ')
0 commit comments