• admin@embedclogic.com

Check whether a number is negative or positive

Check whether a number is negative or positive

Prerequisite:

  • if-else statement
  • C- Operator

Signed Number: if(number is greater than or equal to zero) then number is positive otherwise negative