Determine if a Number is Odd or Even
Learn how to write pseudocode and create a flowchart to find out if a number is odd or even.
Problem statement
You have a number n, and you have to determine if n is odd or even.
The main steps in problem-solving
Understand the problem
Carefully read the problem statement. Also, think about the desired output. The output should be “odd” if the given number is odd and “even” if the given number is even.