Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- /* run this program using the console pauser or add your own getch, system("pause") or input loop */
- int main(int argc, char *argv[]) {
- const char STATUS[20]="student";
- const float SREDNIA=4.5;
- char imie[20], nazwisko[20], plec[20], kod[20], miasto[20], ulica[20];
- int nrDomu;
- int nrMieszkania;
- char pesel[20];
- printf ("Podaj imie:"); scanf ("%s", imie);
- printf ("Podaj nazwisko:"); scanf ("%s", nazwisko);
- printf ("Podaj pesel:"); scanf ("%s", pesel);
- printf ("Podaj plec:"); scanf ("%s", plec);
- printf ("Podaj Kod Pocztowy:"); scanf ("%s", kod);
- printf ("Podaj miasto:"); scanf ("%s", miasto);
- printf ("Podaj ulice:"); scanf ("%s", ulica);
- printf ("Podaj nr domu:"); scanf ("%d", nrDomu);
- printf ("Podaj nr mieszkania:"); scanf ("%d", nrMieszkania);
- printf ("Imie:%s, Nazwisko:%s, Pesel:%s, Plec:%s\n", imie, nazwisko, pesel, plec);
- printf ("Kod Pocztowy:%s, Miasto:%s, Ulica:%s, Nr Domu:%d\n, Nr Mieszkania:%d\n", kod, miasto, ulica, &nrDomu, &nrMieszkania);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement