An algorithm to check given number is positive, negative.

1) START

2) Enter Any number as Gno

3) Check if ( Gno > 0 ) then continue Else Goto Step 6

4) Print Given number is Positive

5) GoTo Step 7

6) Print Given number is Negative

7) END

Flowchart to check given number is positive, negative.

Flowchart to detect given no is positive or negative
Flowchart to detect given no is positive or negative

C-Code to check given number is positive, negative.

#include<stdio.h>
void main()
{
int gno;
printf("Enter any number to detect Positive or Negative:");
scanf("%d",&gno);
if(gno> 0)
printf("The given number is Positive : %d",gno);
else
printf("The given number is Negative : %d ",gno);
}