Write a program in C to find out positive or negative (using IF-ELSE)
#include<stdio.h>
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 ();
}
Post a Comment