Computer Science, asked by simranpreet07111999, 4 months ago

Write an algorithm that determines if a given number is an odd or even number

Answers

Answered by Anonymous
0

\huge\green{Answer}

To find an even number, look at the ones digit, or the digit to the very right of the number. (the ones digit in 5382 would be 2.) If the ones digit is either 0, 2, 4, 6, or 8, then the number is even. If the ones digit is either1, 3, 5, 7, or 9, then the number is odd.

Similar questions