This is a bit of a funny one, while some may argue that 0 is neither odd or even and a bit of a special integer in the way 1 is neither prime nor composite, but when you look at it logically in terms of integers and the definition of odd and even, 0 is an even number.
By definition an even integer is any integer that can be expressed as 2k, where the k is any number is the set of integers (all the whole numbers from -infinity all the way to +infinity). In other words an even number is any integer that can be divided by 2 and still leave an integer, and it is quite apparent that 0 fits this qualification, as 0/2 = 0
Chat with our AI personalities
In a mathematical context, a multiplier for a number, r, is be (1 + r/100) which is usually a rational fraction and the concept of odd or even does not apply to fractions.
If we take two consecutive numbers then one of them is always even and other is odd.And product of an even and an odd number is always even.Reason:Let us say the even number be m and the odd number be n.The even number m can be expressed as 2 x p, where p is some natural number.Now, a thing to remember!"For two natural numbers q and r, q is divisible by r if we can express q as r x s where s is some natural number."Product of m and n = m x n = 2 x p x n.It can be seen that the result is divisible by 2. And if a product is divisible by 2 then it means the product is even.
there cannot be any nos like that.. product of 2 odd nos is odd.. sum of two even nos is even.. that multiplied by six is even too.. subtracting 2 from that also gives an even no.. let x and y be the odd integers. according to the given question xy=6(x+y)-2..here we r actually equatin an odd no and an even no.. which is wrong.. so there cant be any two consecutive odd nos that fit in the question
int matrix[][]; // the matrix to find the max in int max = matrix[0][0]; int r,c; for(r = 0; r < 3; ++r) { for(c = 0; c < 3; ++c) { if(matrix[r][c] > max) { max = matrix[r][c]; } } } // max is now the maximum number in matrix
170/2 = 85 R 0. Therefore binary number so far is 0.85/2 = 42 R 1. Therefore binary number so far is 10.42/2 = 21 R 0. Therefore binary number so far is 010.21/2 = 10 R 1. Therefore binary number so far is 1010.10/2 = 5 R 0. Therefore binary number so far is 01010.5/2 = 2 R 1. Therefore binary number so far is 101010.2/2 = 1 R 0. Therefore binary number so far is 0101010.1/2 = 0 R 1. Therefore binary number so far is 10101010.The integer portion of last division was 0 so for the decimal number 170, the binary equivalent is 10101010.