Solution
#include<stdio.h>
int main()
{
int array[30], count, limit;
scanf("%d", &limit);
for(count = 0; count < limit; count++)
{
scanf("%d", &array[count]);
}
for(count = 0; count < limit; count++)
{
}
for(count = 0; count < limit; count++)
{
if(array[count] < 0)
{
printf("%d=Negative\n", array[count]);
}
else if(array[count] > 0)
{
printf("%d=Positive\n", array[count]);
}
else
{
printf("%d=Zero\n", array[count]);
}
}
return 0;
}
No comments:
Post a Comment