#t225. 奇偶 ASCII 值判断
奇偶 ASCII 值判断
Odd/Even ASCII Check
Problem Description
Given any character, determine whether its value is odd. If so, output YES; otherwise output NO.
For example, the character A has value , so output YES; if the input character is B ( value ), output NO.
Input Format
The input is one character.
Output Format
If its value is odd, output YES; otherwise output NO.
Sample Input
A
Sample Output
YES
Hint
- Read one character. A character can participate in arithmetic directly: taking its remainder is taking the remainder of its ASCII code.
- Check against the sample: the code of
Ais 65 — does it outputYESorNO?