Skip to content

Commit 81c8122

Browse files
check odd and even number
1 parent 3e398b2 commit 81c8122

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Programs/SwapTwoVariables.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,10 @@
1111
y = 7
1212
x,y =y ,x
1313

14-
print("x is ", x, "y is ", y)
14+
print("x is ", x, "y is ", y)
15+
16+
number = 11
17+
if number % 2 == 0:
18+
print("Even number")
19+
else:
20+
print("Odd number")

0 commit comments

Comments
 (0)