Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Южный федеральный университет, ИКТИБ, кафедра МОП ЭВМ
- //КТбо1-7, МоисеенкоЕА
- //Задача C
- //21.11.2019
- #define _CRT_SECURE_NO_WARNINGS
- #include <stdio.h>
- #include <ctype.h>
- #include <string.h>
- void div(char *str)
- {
- int len = strlen(str);
- for (int i = 0; i < len; i++)
- {
- if (isblank(str[i]) == 0)
- {
- if (ispunct(str[i])==0) printf("%c", str[i]);
- if (isblank(str[i + 1]) != 0) printf("\n");
- }
- }
- }
- int mainC()
- {
- char str[1000];
- gets_s(str);
- div(str);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement