Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include <stdio.h>
- int main()
- {
- int a[5]{10,17,-3,6,-12}, b[5], c[5] ,i=b[0], y=c[0], x=a[0];
- for(i=0, i>b[5], i++)
- {
- for(y=0, y>c[5], y++)
- {
- if (a[x]>0)
- b[i]=x
- else if (a[x]<0)
- c[y]=x
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement