'''Write a program that examines three variables—x, y, and z—and prints the largest odd number among them.
If none of them are odd, it should print a message to that effect.'''
x = 161
y = 259
z = 93
largest_odd = 0
if(x % 2 != 0):
if(y % 2 != 0):
if(z % 2 != 0):
if(x > y and x > z):
largest_odd += x
elif(y > z and y > x):
largest_odd += y
elif(z > x and z > y):
largest_odd += z
else:
if(x > y):
largest_odd += x
else:
largest_odd += y
elif(z % 2 != 0):
if(x > z):
largest_odd += x
else:
largest_odd += z
else:
largest_odd += x
elif(y % 2 != 0):
if(z % 2 != 0):
if(y > z):
largest_odd += y
else:
largest_odd += z
else:
largest_odd += y
elif(z % 2 != 0):
largest_odd += z
if(largest_odd % 2 != 0):
print(largest_odd, "is the largest odd")
else:
print("Neither number is odd.")
How do you solve it with only if & else statements?