Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int n;
- struct dane
- {
- char imie[20];
- int nr_telefonu;
- int wygrywa;
- } tab[100];
- void wprowadzanie(int i)
- {
- for (i=0; i<=n; i++)
- {
- scanf("Podaj imie: %s\n", tab[i].imie);
- scanf("Podaj nr telefonu: %d\n", tab[i].nr_telefonu);
- }
- }
- int main()
- {
- printf("Program wczytuje dane n telefonujacych osob (nie wiecej niz 100), podaj n: \n");
- scanf("%d", n);
- wprowadzanie();
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement