Advertisement
Guest User

Untitled

a guest
Mar 27th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main()
  5. {
  6. char tab[256];
  7. int liczba;
  8.  
  9. printf("Wczytaj lancuch: \n");
  10. scanf("%255[^.!?]s", tab);
  11. fflush(stdin);
  12.  
  13. printf("Podaj liczbe wczytywanych znakow: \n");
  14. scanf("%i", &liczba);
  15.  
  16. printf("%.*s \n",liczba, tab);
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement