Advertisement
Guest User

Untitled

a guest
Feb 10th, 2015
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. # include <stdio.h>
  2. int main()
  3. {
  4. int a[5]{10,17,-3,6,-12}, b[5], c[5] ,i=b[0], y=c[0], x=a[0];
  5.  
  6.  
  7. for(i=0, i>b[5], i++)
  8. {
  9. for(y=0, y>c[5], y++)
  10. {
  11. if (a[x]>0)
  12. b[i]=x
  13. else if (a[x]<0)
  14. c[y]=x
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement