Write an algorithm that determines if a given number is an odd or even number
Answers
Answered by
0
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
English,
2 months ago
Math,
2 months ago
Business Studies,
4 months ago
English,
10 months ago
Social Sciences,
10 months ago
History,
10 months ago