and trace the working of the program,
#includestdio.h
void main()
{
int i,n,a[30];
printf("enter the size of the array");
scanf("%d",&n);
printf("the elments of the array are:");
for(i=0;in;i++)
{
scanf("%d",&a[i]);
}
printf("the negative numbers are:");
for(i=0;in;i++)
{
if(a[i]0)
{
printf("%d\n",a[i]);
}
}