#include <stdio.h>
void main()
{
int i;
printf("Enter an integer: ");
scanf("%d", &i);
if(i == 0)
{
printf("%d is Zero", i);
}
else if(i>0)
{
printf("%d is Positive", i);
}
else
{
printf("%d is Negative", i);
}
}
void main()
{
int i;
printf("Enter an integer: ");
scanf("%d", &i);
if(i == 0)
{
printf("%d is Zero", i);
}
else if(i>0)
{
printf("%d is Positive", i);
}
else
{
printf("%d is Negative", i);
}
}
Comments
Post a Comment