Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- n = int(input())
- all_even = True
- for _ in range(n):
- num = int(input())
- if num % 2 != 0:
- print(num, "is odd!")
- exit()
- else:
- all_even = all_even and True
- if all_even:
- print("All numbers are even.")
Advertisement
Add Comment
Please, Sign In to add comment