- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char *argv[])
- {
- int wiek;
- printf ("Podaj swoj wiek\n");
- scanf ("wiek=%d", &wiek);
- if (wiek<=18)
- {
- printf ("Jestes niepelnoletni\n");
- }
- else if(wiek<=30)
- {
- printf ("Jestes jeszcze mlody");
- }
- else if(wiek<=50)
- {
- printf ("Starzejesz sie");
- }
- else
- {
- printf ("Jestes juz stary");
- }
- system("PAUSE");
- getchar ();
- return 0;
- }
