
Check whether a number is odd or even in Raptor
Algorithm
Input: Input two numbers
output: Displays if the number is odd or even
- Start
- Input a number
- check if a mod 2 is zero
3.1 Print a is even - Else
4.1 Print a is odd - Stop
FlowChart

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