def is_even(number):
if number == 0:
return True
elif number == 1:
return False
else:
return is_even(number - 2)
num = int(input("Enter a number: "))
if is_even(num):
print(f"The number {num} is Even.")
else:
print(f"The number {num} is Odd.")
#source code --> clcoding.com
0 Comments:
Post a Comment