uploaded 1-6

This commit is contained in:
2024-12-07 22:06:50 +02:00
parent c231dce57f
commit 017145b529
6 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
# Q1
user_input = int(input("Enter a number: "))
if user_input % 2 == 0: print("Number is even.")
else: print("Number is odd.")
if user_input > 0: print("Number is positive.")
elif user_input < 0: print("Number is negative.")
else: print("Number is 0.")