Advertisement
Guest User

Untitled

a guest
May 4th, 2012
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     int ile, licznik;
  6.     char nazwa[50];
  7.    
  8.     printf("Podaj liczbe: ");
  9.     scanf("%d", &ile);
  10.    
  11.     for(licznik = 0; licznik < ile; licznik++)
  12.     {
  13.                 printf("Podaj nazwe %d: ", licznik+1);
  14.                 fgets(nazwa, 51, stdin);  
  15.     }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement