We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f581e7e commit 42a928cCopy full SHA for 42a928c
1 file changed
oddeven
@@ -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