#include <stdio.h>
#include <stdlib.h>

typedef struct {
char imie[20];
int numer[2];
} osoba;


int main() {
    osoba student;
    printf("Podaj numer pesel Studenta ");
    scanf("%d", &student.numer[0]);
    printf("Podaj numer indeksu Studenta ");
    scanf("%d", &student.numer[1]);
    // czyscimy bufor aby uniknac problemow z pobieraniem
    getchar();
    printf("podaj imie Studenta ");
    gets(student.imie);
     
     printf("\nNumer pesel Studenta to %d, jego indeksu to %d a imie %s\n", student.numer[0],  student.numer[1], student.imie);    
     system ("pause");
     return 0;
     }
