int t [30], s[30], r [30],i,j,k,m;
for (i=1;i=30;i++)
k=1;j=1;
{cout <<"s ["<cin>>s [i];}
for(i=1;i <=30;i++)
{if (s [i]>=0)
{t [j]=s [i];
j++;}
else
{r [k]=s [i];
k++;}
}
m=j-1;i=1;
for(j=1;j <=m;j++)
{s [i]=t [j];
i++; }
i=1;
for (k=m+1;k <=30;k++)
{s [k]=r [i];
k++;}
for (i=1;i <=30;i++)
cout <