Skip to content

Commit 6bf7c93

Browse files
authored
Merge pull request #27 from AshishCodeSmith/main
Create even or odd .py
2 parents c4a2281 + 59a2c6a commit 6bf7c93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
num = int(input("Enter a number: "))
3+
4+
# Check if the number is even or odd
5+
if num % 2 == 0:
6+
print(f"{num} is Even")
7+
else:
8+
print(f"{num} is Odd")

0 commit comments

Comments
 (0)