2. Check whether first digit of entered three digit number is odd or even.
789=7x100+8x10+9x1
657%10=7
780
‼️‼️write a python program ‼️‼️
Answers
Answered by
2
print("even") if int(input("n: ")[0]) % 2 == 0 else print("odd")
Similar questions