answersLogoWhite

0


Best Answer

-- First of all, if the number is a fraction or a decimal, then don't worry about it.

Only whole numbers are considered odd or even.

-- All multiples of 2 are even numbers, and that's easy to recognize. It doesn't

matter how big the number is, or how many digits it has. You only have to look

at the last digit (the one on the right-hand end). If that digit is 2, 4, 6, 8, or 0,

then the whole big number is even. Otherwise it's odd.

User Avatar

Wiki User

βˆ™ 12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find odd or even in n number of value?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Assembly language program to check whether the number is even or odd?

;Program to check whether the value in register is even or odd .ORIG X3000 AND R2,R1,X0001 BRZ EVEN LEA R0,DEF ;PRINTS ODD IF VALUE IN REGISTER R2 IS 1 PUTS HALT EVEN: LEA R0,ABC ;PRINTS EVEN IF VALUE IN R2 IS 0 PUTS HALT ABC .STRINGZ "EVEN" DEF .STRINGZ "ODD" .END


How do you find whether a given number is even or odd in Unix shell programming?

echo "Program to check even or odd number"echo "Enter a number"read na=`expr $n % 2`if [ $a -eq 0 ] ; then #Semicolon is most important for Executing ifelse statementsecho "It is an even number"elseecho "It is an odd number"fi


How do you draw a Flowchart to find whether the given number is odd or even using counter?

first we write start and then read number and after that check the number is totaly divide by 2 or not if number is totally divide by 2 then number is even else number is odd.


Write a programe to find whether a number is odd or even?

#include #include int main(int argc, char *argv[]){if(argc != 2) {printf("pass one integer as an argument.\n");exit(1);}if(atoi(argv[1]) % 2){printf("That is an odd number\n");}else{printf("That is an even number\n");}return 0;}


Can identify the odd and the even in the java script using HTML?

Here is a JavaScript option for determining if a number is odd or even. It even lets you know if the number is zero (if you want zero to be neither odd nor even). var n = prompt("Enter a number to identify as odd or even", "Type your number here"); n = parseInt(n); if (isNaN(n)) { alert("Please Enter a Number"); } else if (n == 0) { alert("The number is zero"); } else if (n%2) { alert("The number is odd"); } else { alert("The number is even"); }