Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Mar 15th, 2010 | Syntax: None | Size: 0.86 KB | Hits: 47 | Expires: Never
Copy text to clipboard
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(int argc, char *argv[])
  5. {
  6.    
  7.   int wiek;
  8.  
  9.  
  10.   printf ("Podaj swoj wiek\n");
  11.   scanf ("wiek=%d", &wiek);
  12.  
  13.   if (wiek<=18)
  14.      {
  15.      printf ("Jestes niepelnoletni\n");
  16.      }
  17.                else if(wiek<=30)
  18.                {
  19.                printf ("Jestes jeszcze mlody");
  20.                }      
  21.                         else if(wiek<=50)
  22.                              {    
  23.                              printf ("Starzejesz sie");
  24.                              }    
  25.                                   else
  26.                                      {  
  27.                                        printf ("Jestes juz stary");
  28.                                        }
  29.                              
  30.                
  31.                      
  32.   system("PAUSE");     
  33.  
  34.   getchar ();
  35.  
  36.  
  37.   return 0;
  38.  
  39. }