Advertisement
Guest User

Untitled

a guest
Jan 7th, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3.  
  4. void tab(int tablica[],int rozmiar)
  5. {
  6.  
  7. for(int i=0;i<rozmiar;i++)
  8. {
  9. printf("podaj el:");
  10. scanf("%d",&tablica[i]);
  11.  
  12.  
  13. }
  14.  
  15. for(int i=0;i<rozmiar;i++)
  16. {
  17.  
  18. //tu ma być przeszukanie xd
  19.  
  20.  
  21.  
  22. }
  23.  
  24. }
  25.  
  26.  
  27.  
  28.  
  29. int main ()
  30. {
  31. int x;
  32. printf("rozmiar tablicy: ");
  33. scanf("%d",&x);
  34. int A[x];
  35. tab(A,x);
  36.  
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement