Showing posts with label WAP to find out Positive or Negative (IF-ELSE). Show all posts
Showing posts with label WAP to find out Positive or Negative (IF-ELSE). Show all posts

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