Computer Science, asked by YAMUNAM, 2 months ago

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 jai696
2

\huge\red{\mid{\fbox{\tt{Using\: Python\: 3}}\mid}}

print("even") if int(input("n: ")[0]) % 2 == 0 else print("odd")

\large\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions