Advertisement
Guest User

Untitled

a guest
Jan 19th, 2018
78
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. #include <stdlib.h>
  3. int n;
  4. struct dane
  5. {
  6. char imie[20];
  7. int nr_telefonu;
  8. int wygrywa;
  9. } tab[100];
  10.  
  11. void wprowadzanie(int i)
  12. {
  13. for (i=0; i<=n; i++)
  14. {
  15. scanf("Podaj imie: %s\n", tab[i].imie);
  16. scanf("Podaj nr telefonu: %d\n", tab[i].nr_telefonu);
  17. }
  18. }
  19.  
  20. int main()
  21. {
  22. printf("Program wczytuje dane n telefonujacych osob (nie wiecej niz 100), podaj n: \n");
  23. scanf("%d", n);
  24. wprowadzanie();
  25. getch();
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement