Dark mode logo
Last Updated:
Check whether a number is odd or even in Raptor

Check whether a number is odd or even in Raptor

Algorithm

Input: Input two numbers
output: Displays if the number is odd or even

  1. Start
  2. Input a number
  3. check if a mod 2 is zero
    3.1 Print a is even
  4. Else
    4.1 Print a is odd
  5. Stop

FlowChart

Flowchart to check if a number is odd or even

Note: This Flowchart was created using a program called Raptor. The flowchart file can be downloaded by clicking here

Input
a:4
Output
4 is an even number

 

Comments