Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- char tab[256];
- int liczba;
- printf("Wczytaj lancuch: \n");
- scanf("%255[^.!?]s", tab);
- fflush(stdin);
- printf("Podaj liczbe wczytywanych znakow: \n");
- scanf("%i", &liczba);
- printf("%.*s \n",liczba, tab);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement