Best collection of C programs
Tuesday, January 4, 2011
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 ();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment