The number of odd numbers between 38 and n = int[abs(n - 38)/2]
Chat with our AI personalities
38
The terms "even" and "odd" apply to whole numbers, not to decimals or fractions.
"Two consecutive numbers" implies that these are whole numbers. Consecutive whole numbers have different parity - that is to say that one is odd and the other even, which means that their sum must be odd. Since 38 is even the problem has no solution.
The whole numbers between 34 and 41 are: 35, 36, 37, 38, 39, 40 Therefore, there are 6 numbers between 34 and 41, not including themselves.
The even numbers in between 30 and 40 are; 32, 34, 36 and 38.