Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  5.  
  6. int main(int argc, char *argv[]) {
  7. const char STATUS[20]="student";
  8. const float SREDNIA=4.5;
  9. char imie[20], nazwisko[20], plec[20], kod[20], miasto[20], ulica[20];
  10. int nrDomu;
  11. int nrMieszkania;
  12. char pesel[20];
  13. printf ("Podaj imie:"); scanf ("%s", imie);
  14. printf ("Podaj nazwisko:"); scanf ("%s", nazwisko);
  15. printf ("Podaj pesel:"); scanf ("%s", pesel);
  16. printf ("Podaj plec:"); scanf ("%s", plec);
  17. printf ("Podaj Kod Pocztowy:"); scanf ("%s", kod);
  18. printf ("Podaj miasto:"); scanf ("%s", miasto);
  19. printf ("Podaj ulice:"); scanf ("%s", ulica);
  20. printf ("Podaj nr domu:"); scanf ("%d", nrDomu);
  21. printf ("Podaj nr mieszkania:"); scanf ("%d", nrMieszkania);
  22. printf ("Imie:%s, Nazwisko:%s, Pesel:%s, Plec:%s\n", imie, nazwisko, pesel, plec);
  23. printf ("Kod Pocztowy:%s, Miasto:%s, Ulica:%s, Nr Domu:%d\n, Nr Mieszkania:%d\n", kod, miasto, ulica, &nrDomu, &nrMieszkania);
  24.  
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement