211k views
17 votes
7. Develop an algorithm using pseudocode to show whether a given number is even or odd

1 Answer

9 votes

Answer:

  • Calculate the remainder after division by 2
  • If remainder is 0, number is even, odd otherwise

User FreshWoWer
by
3.6k points