Advertisement
Guest User

Untitled

a guest
Jan 30th, 2015
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. void wstaw_na_n (int a,int n,int tab[])
  2. {
  3. int p=0;
  4. int temp1=a;
  5. int temp2;
  6. int i;
  7. while (p<n && tab[p]!=a)
  8. p++;
  9. for (i=p;i<n;i++)
  10. {
  11. temp2=tab[i];
  12. tab[i]=temp1;
  13. temp2=temp1;
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement