POSITIVE / NEGATIVE

WAP to find out Positive or Negative (IF-ELSE)

void main ()

{

int a;

clrscr ();

printf ("Enter the value of A: ");

scanf("%d",&a);

if (a>=0)

{

printf ("Number is Positive");

}

else

{

printf("Number is Negative");

}

getch ();

}


Labels