Advertisement
DominikPasiut

Untitled

Oct 15th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.79 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     char imie_i_nazwisko[50];
  6.     char adres_zamieszkania [50];
  7.     char pesel [12];
  8.     char miejsce_urodzenia[50];
  9.     char numer_buta[4];
  10.  
  11.     printf("Podaj swoje imie i nazwisko: \n");
  12.     gets(imie_i_nazwisko);
  13.  
  14.     printf("Podaj numer pesel: \n");
  15.     gets(pesel);
  16.  
  17.     printf("Podaj adres zamieszkania: \n");
  18.     gets(adres_zamieszkania);
  19.  
  20.     printf("Podaj miejsce urodzenia: \n");
  21.     gets(miejsce_urodzenia);
  22.  
  23.     printf("Podaj numer buta: \n");
  24.     gets(numer_buta);
  25.  
  26.     printf("Witaj %s, Twoj adres zamieszkania to %s z kolei numer buta to %s.\n Urodziles sie w %s a Twoj pesel to %s.\n\n\n"
  27.            " Milego dnia %s", imie_i_nazwisko, adres_zamieszkania, numer_buta, miejsce_urodzenia, pesel, imie_i_nazwisko);
  28.  
  29.     return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement