Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5b02771

Browse files
Merge pull request #3 from priyanshu-bhatt/main
oddeven.py
2 parents b4bbf61 + 27b796a commit 5b02771

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎Python Basics/oddeven.py‎

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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /