假如两个整数都是奇数或都是偶数,则它们具有相同的奇偶性;
If two integers are both odd or both even, they are said to have the same parity; if one is odd and one even, they have different parity.
从键盘输入1位十进制值,判断其奇偶性,若为奇数,在屏幕上输出1,否则为0。
Keyboard input from a decimal value, to determine its parity, if odd, the screen output 1, otherwise to 0.
从键盘输入1位十进制值,判断其奇偶性,若为奇数,在屏幕上输出1,否则为0。
Keyboard input from a decimal value, to determine its parity, if odd, the screen output 1, otherwise to 0.
应用推荐