Skip to content

Commit b80d9b9

Browse files
Merge pull request seeditsolution#359 from amiyagiri/patch-1
oddeven
2 parents 5a2180b + 42a928c commit b80d9b9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

oddeven

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
print("hello world")
2+
num = int(input("Enter a number: "))
3+
mod = num % 2
4+
if mod > 0:
5+
print("This is an odd number.")
6+
else:
7+
print("This is an even number.")

0 commit comments

Comments
 (0)