Wednesday 30 January 2013

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 ();
}

No comments:

Post a Comment

Comment