#include<stdio.h>
#include<conio.h>
main()
{
int n,i,a[20];
clrscr();
printf("Enter number : ");
scanf("%d",&n);
printf("Enter array elements...\n");
for(i=0;i<n;i++)
{
printf("Enter element %d : ",i+1);
scanf("%d",&a[i]);
}
printf("\n\nNegative Elements : \n");
for(i=0;i<n;i++)
if(a[i]<0)
printf("\n%d",a[i]);
printf("\n\nPositive Elements : \n");
for(i=0;i<n;i++)
if(a[i]>0)
printf("\n%d",a[i]);
getch();
}