Dark mode logo
Last Updated:
Check if a number is positive or negative in Raptor

Check if a number is positive or negative in Raptor

Algorithm

Input: Input a numbers
output: Check if the number is +ve or -ve

  1. Start
  2. Input a number say a
  3. check if a>0
    3.1 Print a is +ve
  4. Else
    4.1 Print a is -ve
  5. Stop

FlowChart

Flowchart to check if a number is positive or negative

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

Input
a:5
Output
5 is a positive number

 

Comments